From f07f153f22ba10079fb842d72bd289288e2aa97b Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Tue, 15 Apr 2014 06:54:12 +0400 Subject: [PATCH] menu style --- .../res/popup_menu_background_normal.9.png | Bin 0 -> 374 bytes src/dlangui/widgets/styles.d | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 examples/example1/res/popup_menu_background_normal.9.png diff --git a/examples/example1/res/popup_menu_background_normal.9.png b/examples/example1/res/popup_menu_background_normal.9.png new file mode 100644 index 0000000000000000000000000000000000000000..3c322655f969aabc6d0c1680808e5db5518526e0 GIT binary patch literal 374 zcmeAS@N?(olHy`uVBq!ia0vp^N+8U^1|+TAxeoy;#^NA%Cx&(BWL^R}Y)RhkE)4x3 z7&|-804Ty);1OBOz`!jG!i)^F=12eq*-JcqUD@xk@H6SLxV^0~0t$Weba4!cIQ;g; zLC$6a5w-{RkC^s)R+ljf?rOHJc*npu!Si3F%;Esq1-9FtTob(I&7>6QWZHY-kGiAc z{7Q*?!3S*fYvdn(Ik0uVe&i9$)QSF0LB)kP-tSS8J1_2WE$Gy>GW&!1mnYcdF%~fe z+%(wV#&AH=!R()alfxQSF4luPToe^0rfHb4q=ipvRezS{xnZJKH}B`+w;fY9sjg%w+4c1M)Z02P$$Bb`3$E{etUWjGFrT5s-78uQ zQ`I{hHJ0CJ-F5h!P2!agN9UfKu<~GKCQlOIrfVG!Ya;3xJZIV--Fv9H9~c4*p00i_ I>zopr0L#9LQ2+n{ literal 0 HcmV?d00001 diff --git a/src/dlangui/widgets/styles.d b/src/dlangui/widgets/styles.d index 12136301..38bc15b1 100644 --- a/src/dlangui/widgets/styles.d +++ b/src/dlangui/widgets/styles.d @@ -664,14 +664,14 @@ Theme createDefaultTheme() { //tabWidget.backgroundImageId("frame_blue"); //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) ; menuItem.createState(State.Focused, State.Focused).backgroundColor(0x40C0C000); 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); - Style poopupMenu = res.createSubstyle("POPUP_MENU").backgroundImageId("btn_default_small"); + Style poopupMenu = res.createSubstyle("POPUP_MENU").backgroundImageId("popup_menu_background_normal"); return res; }