Add an extra background to the button that maintains the state of the pressed button color opacity. This ensures the highlighted button color will be based on the button color instead of the color of the item the button is added to.

svn path=/trunk/; revision=53
This commit is contained in:
Marina Zhurakhinskaya
2008-11-17 22:32:28 +00:00
parent 679365f1c1
commit bc2cb8fb62
2 changed files with 22 additions and 18 deletions

View File

@ -14,7 +14,7 @@ const TRAY_HEIGHT = 24;
const PANEL_BACKGROUND_COLOR = new Clutter.Color();
PANEL_BACKGROUND_COLOR.from_pixel(0xeeddccff);
const PRESSED_BUTTON_BACKGROUND_COLOR = new Clutter.Color();
PRESSED_BUTTON_BACKGROUND_COLOR.from_pixel(0xddccbbff);
PRESSED_BUTTON_BACKGROUND_COLOR.from_pixel(0xccbbaaff);
function Panel() {
this._init();