diff options
author | louis <louis.braun@gmx.de> | 2013-05-26 17:04:57 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-05-26 17:04:57 +0200 |
commit | 0705efac8ae18198f83ff2d02df926fa87d65ea0 (patch) | |
tree | faec496ea7718f6a9cd45ef0d75f0d50dd84d695 | |
parent | d775c945bf9312a4aa87ab6e76ba4e0e46c4d7cd (diff) | |
download | vdr-plugin-tvguide-0705efac8ae18198f83ff2d02df926fa87d65ea0.tar.gz vdr-plugin-tvguide-0705efac8ae18198f83ff2d02df926fa87d65ea0.tar.bz2 |
Added theme nOpacity iceblue
-rw-r--r-- | footer.c | 13 | ||||
-rw-r--r-- | themes/tvguide-nOpacityiceblue.theme | 24 |
2 files changed, 32 insertions, 5 deletions
@@ -42,11 +42,14 @@ void cFooter::DrawButton(const char *text, tColor color, tColor borderColor, int int left = num * buttonWidth + (num + 1) * buttonBorder;
footer->DrawRectangle(cRect(left, buttonY, buttonWidth, buttonHeight), borderColor);
-
- cImageLoader imgLoader;
- imgLoader.DrawBackground(theme.Color(clrButtonBlend), color, buttonWidth-4, buttonHeight-4);
- footer->DrawImage(cPoint(left+2, buttonY+2), imgLoader.GetImage());
-
+ if (tvguideConfig.useBlending) {
+ cImageLoader imgLoader;
+ imgLoader.DrawBackground(theme.Color(clrButtonBlend), color, buttonWidth-4, buttonHeight-4);
+ footer->DrawImage(cPoint(left+2, buttonY+2), imgLoader.GetImage());
+ } else {
+ footer->DrawRectangle(cRect(left, buttonY, buttonWidth, buttonHeight), borderColor);
+ footer->DrawRectangle(cRect(left+2, buttonY+2, buttonWidth-4, buttonHeight-4), color);
+ }
int textWidth = tvguideConfig.FontButton->Width(text);
int textHeight = tvguideConfig.FontButton->Height();
footer->DrawText(cPoint(left + (buttonWidth-textWidth)/2, buttonY + (buttonHeight-textHeight)/2), text, theme.Color(clrFontButtons), clrTransparent, tvguideConfig.FontButton);
diff --git a/themes/tvguide-nOpacityiceblue.theme b/themes/tvguide-nOpacityiceblue.theme new file mode 100644 index 0000000..e298b14 --- /dev/null +++ b/themes/tvguide-nOpacityiceblue.theme @@ -0,0 +1,24 @@ +Description = nOpacity IceBlue +clrBackground = DDFFFFFF +clrBackgroundOSD = DDFFFFFF +clrGrid1 = BB555555 +clrGrid2 = BB888888 +clrHighlight = FF000044 +clrFont = FF000000 +clrFontButtons = FFFFFFFF +clrFontHeader = FF000000 +clrHeader = FFFFFFFF +clrBorder = FF000000 +clrStatusHeader = DDFFFFFF +clrTimeline1 = FFFFFFFF +clrTimeline1Blending = 00000000 +clrTimeline2 = FF000000 +clrTimeline2Blending = 00000000 +clrButtonRed = FFBB0000 +clrButtonRedBorder = FFBB0000 +clrButtonGreen = FF00BB00 +clrButtonGreenBorder = FF00BB00 +clrButtonYellow = FFBBBB00 +clrButtonYellowBorder = FFBBBB00 +clrButtonBlue = FF0000BB +clrButtonBlueBorder = FF0000BB |