added dedicated font background color for grids in graphical themes to avoid font pixelation

This commit is contained in:
louis 2014-01-29 17:38:51 +01:00
parent 26f46355f9
commit 5f1d939464
11 changed files with 32 additions and 2 deletions

View File

@ -199,6 +199,8 @@ THEME_CLR(theme, clrGrid2, 0x00000000);
THEME_CLR(theme, clrGrid2Blending, 0x00000000); THEME_CLR(theme, clrGrid2Blending, 0x00000000);
THEME_CLR(theme, clrHighlight, 0xAA3A3A55); THEME_CLR(theme, clrHighlight, 0xAA3A3A55);
THEME_CLR(theme, clrHighlightBlending, 0xDD000000); THEME_CLR(theme, clrHighlightBlending, 0xDD000000);
THEME_CLR(theme, clrGridFontBack, clrTransparent);
THEME_CLR(theme, clrGridActiveFontBack, 0xFFAFD533);
THEME_CLR(theme, clrFont, clrWhite); THEME_CLR(theme, clrFont, clrWhite);
THEME_CLR(theme, clrFontActive, 0xFF363636); THEME_CLR(theme, clrFontActive, 0xFF363636);
THEME_CLR(theme, clrFontHeader, 0xFF363636); THEME_CLR(theme, clrFontHeader, 0xFF363636);

View File

@ -66,7 +66,13 @@ void cDummyGrid::setText() {
void cDummyGrid::drawText() { void cDummyGrid::drawText() {
tColor colorText = (active)?theme.Color(clrFontActive):theme.Color(clrFont); tColor colorText = (active)?theme.Color(clrFontActive):theme.Color(clrFont);
tColor colorTextBack = (tvguideConfig.style == eStyleFlat)?color:clrTransparent; tColor colorTextBack;
if (tvguideConfig.style == eStyleFlat)
colorTextBack = color;
else if (tvguideConfig.style == eStyleGraphical)
colorTextBack = (active)?theme.Color(clrGridActiveFontBack):theme.Color(clrGridFontBack);
else
colorTextBack = clrTransparent;
if (tvguideConfig.displayMode == eVertical) { if (tvguideConfig.displayMode == eVertical) {
if (Height()/geoManager.minutePixel < 6) if (Height()/geoManager.minutePixel < 6)
return; return;

View File

@ -98,7 +98,13 @@ void cEpgGrid::setText() {
void cEpgGrid::drawText() { void cEpgGrid::drawText() {
tColor colorText = (active)?theme.Color(clrFontActive):theme.Color(clrFont); tColor colorText = (active)?theme.Color(clrFontActive):theme.Color(clrFont);
tColor colorTextBack = (tvguideConfig.style == eStyleFlat)?color:clrTransparent; tColor colorTextBack;
if (tvguideConfig.style == eStyleFlat)
colorTextBack = color;
else if (tvguideConfig.style == eStyleGraphical)
colorTextBack = (active)?theme.Color(clrGridActiveFontBack):theme.Color(clrGridFontBack);
else
colorTextBack = clrTransparent;
if (tvguideConfig.displayMode == eVertical) { if (tvguideConfig.displayMode == eVertical) {
if (Height()/geoManager.minutePixel < 6) if (Height()/geoManager.minutePixel < 6)
return; return;

View File

@ -8,6 +8,8 @@ clrGrid2 = EE888888
clrGrid2Blending = 90000000 clrGrid2Blending = 90000000
clrHighlight = EE0033FF clrHighlight = EE0033FF
clrHighlightBlending = DD000000 clrHighlightBlending = DD000000
clrGridFontBack = 00000000
clrGridActiveFontBack = 00000000
clrFont = FFFFFFFF clrFont = FFFFFFFF
clrFontActive = FFFFFFFF clrFontActive = FFFFFFFF
clrFontHeader = FFFFFFFF clrFontHeader = FFFFFFFF

View File

@ -8,6 +8,8 @@ clrGrid2 = FF071871
clrGrid2Blending = FF000000 clrGrid2Blending = FF000000
clrHighlight = FF7A6D6D clrHighlight = FF7A6D6D
clrHighlightBlending = FF1C1919 clrHighlightBlending = FF1C1919
clrGridFontBack = 00000000
clrGridActiveFontBack = 00000000
clrFont = FFFFFFFF clrFont = FFFFFFFF
clrFontActive = FFFFFFFF clrFontActive = FFFFFFFF
clrFontHeader = FF000000 clrFontHeader = FF000000

View File

@ -8,6 +8,8 @@ clrGrid2 = DD333333
clrGrid2Blending = 90000000 clrGrid2Blending = 90000000
clrHighlight = DDBB0000 clrHighlight = DDBB0000
clrHighlightBlending = DD000000 clrHighlightBlending = DD000000
clrGridFontBack = 00000000
clrGridActiveFontBack = 00000000
clrFont = FFFFFFFF clrFont = FFFFFFFF
clrFontActive = FFFFFFFF clrFontActive = FFFFFFFF
clrFontHeader = FFFFFFFF clrFontHeader = FFFFFFFF

View File

@ -8,6 +8,8 @@ clrGrid2 = DD333333
clrGrid2Blending = 90000000 clrGrid2Blending = 90000000
clrHighlight = DDBB0000 clrHighlight = DDBB0000
clrHighlightBlending = DD000000 clrHighlightBlending = DD000000
clrGridFontBack = 00000000
clrGridActiveFontBack = 00000000
clrFont = FFFFFFFF clrFont = FFFFFFFF
clrFontActive = FFFFFFFF clrFontActive = FFFFFFFF
clrFontHeader = FFFFFFFF clrFontHeader = FFFFFFFF

View File

@ -8,6 +8,8 @@ clrGrid2 = 00000000
clrGrid2Blending = 00000000 clrGrid2Blending = 00000000
clrHighlight = DD313548 clrHighlight = DD313548
clrHighlightBlending = DD000000 clrHighlightBlending = DD000000
clrGridFontBack = 00000000
clrGridActiveFontBack = FFAFD533
clrFont = FFFFFFFF clrFont = FFFFFFFF
clrFontActive = FF363636 clrFontActive = FF363636
clrFontHeader = FF363636 clrFontHeader = FF363636

View File

@ -8,6 +8,8 @@ clrGrid2 = EE888888
clrGrid2Blending = 90000000 clrGrid2Blending = 90000000
clrHighlight = EE006600 clrHighlight = EE006600
clrHighlightBlending = 22000000 clrHighlightBlending = 22000000
clrGridFontBack = 00000000
clrGridActiveFontBack = 00000000
clrFont = FFFFFFFF clrFont = FFFFFFFF
clrFontActive = FFFFFFFF clrFontActive = FFFFFFFF
clrFontHeader = FFFFFFFF clrFontHeader = FFFFFFFF

View File

@ -4,6 +4,8 @@ clrBackground = DDFFFFFF
clrBackgroundOSD = FFFFFFFF clrBackgroundOSD = FFFFFFFF
clrGrid1 = BB555555 clrGrid1 = BB555555
clrGrid2 = BB888888 clrGrid2 = BB888888
clrGridFontBack = 00000000
clrGridActiveFontBack = 00000000
clrHighlight = FF000044 clrHighlight = FF000044
clrFont = FF000000 clrFont = FF000000
clrFontActive = FFFFFFFF clrFontActive = FFFFFFFF

View File

@ -4,6 +4,8 @@ clrBackground = FF111111
clrBackgroundOSD = FF111111 clrBackgroundOSD = FF111111
clrGrid1 = BB555555 clrGrid1 = BB555555
clrGrid2 = BB888888 clrGrid2 = BB888888
clrGridFontBack = 00000000
clrGridActiveFontBack = 00000000
clrHighlight = FF336699 clrHighlight = FF336699
clrFont = FFFFFFFF clrFont = FFFFFFFF
clrFontActive = FFFFFFFF clrFontActive = FFFFFFFF