mirror of https://github.com/buggins/dlangui.git
menu style
This commit is contained in:
parent
fb0e1b6c6b
commit
f07f153f22
Binary file not shown.
|
After Width: | Height: | Size: 374 B |
|
|
@ -664,14 +664,14 @@ Theme createDefaultTheme() {
|
||||||
//tabWidget.backgroundImageId("frame_blue");
|
//tabWidget.backgroundImageId("frame_blue");
|
||||||
//res.dumpStats();
|
//res.dumpStats();
|
||||||
|
|
||||||
Style mainMenu = res.createSubstyle("MAIN_MENU").backgroundColor(0xE0E0E0).layoutWidth(FILL_PARENT);
|
Style mainMenu = res.createSubstyle("MAIN_MENU").backgroundColor(0x00E7E8EC).layoutWidth(FILL_PARENT);
|
||||||
Style menuItem = res.createSubstyle("MENU_ITEM").padding(Rect(4,2,4,2)); //.backgroundColor(0xE0E080) ;
|
Style menuItem = res.createSubstyle("MENU_ITEM").padding(Rect(4,2,4,2)); //.backgroundColor(0xE0E080) ;
|
||||||
menuItem.createState(State.Focused, State.Focused).backgroundColor(0x40C0C000);
|
menuItem.createState(State.Focused, State.Focused).backgroundColor(0x40C0C000);
|
||||||
menuItem.createState(State.Pressed, State.Pressed).backgroundColor(0x4080C000);
|
menuItem.createState(State.Pressed, State.Pressed).backgroundColor(0x4080C000);
|
||||||
menuItem.createState(State.Selected, State.Selected).backgroundColor(0x40FFFF00);
|
menuItem.createState(State.Selected, State.Selected).backgroundColor(0x00F8F9Fa);
|
||||||
menuItem.createState(State.Hovered, State.Hovered).backgroundColor(0xC0FFFF00);
|
menuItem.createState(State.Hovered, State.Hovered).backgroundColor(0xC0FFFF00);
|
||||||
|
|
||||||
Style poopupMenu = res.createSubstyle("POPUP_MENU").backgroundImageId("btn_default_small");
|
Style poopupMenu = res.createSubstyle("POPUP_MENU").backgroundImageId("popup_menu_background_normal");
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue