summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2012-11-28 19:24:33 +0100
committerroot <root@maschine.(none)>2012-11-28 19:27:52 +0100
commitd4c74dc0b5a3dd62161a9b29ec2c98cc9f223783 (patch)
tree1249765dd217b002fda558a2f579c30b0f060db2 /displaymenu.c
parent4b51af06327270caa4f38c31f28cdfbc1baabc4e (diff)
downloadskin-nopacity-d4c74dc0b5a3dd62161a9b29ec2c98cc9f223783.tar.gz
skin-nopacity-d4c74dc0b5a3dd62161a9b29ec2c98cc9f223783.tar.bz2
Integrated patches from maverick-me, resolved Tickets 1141, 1143, 1151, 1152
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/displaymenu.c b/displaymenu.c
index ea1a868..6a2d982 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -214,23 +214,24 @@ void cNopacityDisplayMenu::SetTitle(const char *Title) {
}
void cNopacityDisplayMenu::SetButtons(const char *Red, const char *Green, const char *Yellow, const char *Blue) {
+ tColor lutBg[] = { Theme.Color(clrButtonRedBorder), Theme.Color(clrButtonGreenBorder), Theme.Color(clrButtonYellowBorder), Theme.Color(clrButtonBlueBorder) };
if (Red) {
- menuView->DrawButton(Red, handleButtons[0], Theme.Color(clrButtonRedBorder), 0);
+ menuView->DrawButton(Red, handleButtons[0], lutBg[Setup.ColorKey0], 0);
} else
menuView->ClearButton(0);
if (Green) {
- menuView->DrawButton(Green, handleButtons[1], Theme.Color(clrButtonGreenBorder), 1);
+ menuView->DrawButton(Green, handleButtons[1], lutBg[Setup.ColorKey1], 1);
} else
menuView->ClearButton(1);
if (Yellow) {
- menuView->DrawButton(Yellow, handleButtons[2], Theme.Color(clrButtonYellowBorder), 2);
+ menuView->DrawButton(Yellow, handleButtons[2], lutBg[Setup.ColorKey2], 2);
} else
menuView->ClearButton(2);
if (Blue) {
- menuView->DrawButton(Blue, handleButtons[3], Theme.Color(clrButtonBlueBorder), 3);
+ menuView->DrawButton(Blue, handleButtons[3], lutBg[Setup.ColorKey3], 3);
} else
menuView->ClearButton(3);
}