diff options
author | louis <louis.braun@gmx.de> | 2013-11-02 16:07:08 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-02 16:07:08 +0100 |
commit | 13283424f777bde59db85734ea697bda8a2b4a12 (patch) | |
tree | b1c4059a2922d3dfb1f7e7d36cb0a0b946c789ff | |
parent | 0073ee74eb570193982577c1162d5cfcd55946e7 (diff) | |
download | skin-nopacity-13283424f777bde59db85734ea697bda8a2b4a12.tar.gz skin-nopacity-13283424f777bde59db85734ea697bda8a2b4a12.tar.bz2 |
display not selectable menu elements with dedicated font color
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | menuitem.c | 13 |
2 files changed, 11 insertions, 3 deletions
@@ -336,3 +336,4 @@ Version 0.1.4 - Added background with dedicated theme color for channel logos in menus - Improved Display of Poster or Banner in displaychannel - implemented cDisplayChannel::SetMessage() +- display not selectable menu elements with dedicated font color @@ -1547,8 +1547,7 @@ bool cNopacityDefaultMenuItem::DrawHeaderElement(void) { *(c2 + 1) = 0; int left = 5 + tabWidth[0]; - tColor clrFontBack = (config.GetValue("displayType") != dtFlat)?(clrTransparent):((current)?Theme.Color(clrMenuItemHigh):Theme.Color(clrMenuItem)); - pixmapStatic->DrawText(cPoint(left, (height - font->Height()) / 2), c, Theme.Color(clrMenuFontMenuItemSep), clrFontBack, font); + pixmapStatic->DrawText(cPoint(left, (height - font->Height()) / 2), c, Theme.Color(clrMenuFontMenuItemSep), clrTransparent, font); return true; } return false; @@ -1557,7 +1556,15 @@ bool cNopacityDefaultMenuItem::DrawHeaderElement(void) { void cNopacityDefaultMenuItem::Render() { DrawBackground(); pixmapStatic->Fill(clrTransparent); - tColor clrFont = (current)?Theme.Color(clrMenuFontMenuItemHigh):Theme.Color(clrMenuFontMenuItem); + + tColor clrFont; + if (current) + clrFont = Theme.Color(clrMenuFontMenuItemHigh); + else if (!selectable) + clrFont = Theme.Color(clrMenuFontMenuItemSep); + else + clrFont = Theme.Color(clrMenuFontMenuItem); + if (!selectable && (strncmp(Text, "---", 3) == 0)) { if (DrawHeaderElement()) return; |