mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
added dedicated font background color for grids in graphical themes to avoid font pixelation
This commit is contained in:
parent
26f46355f9
commit
5f1d939464
2
config.h
2
config.h
@ -199,6 +199,8 @@ THEME_CLR(theme, clrGrid2, 0x00000000);
|
||||
THEME_CLR(theme, clrGrid2Blending, 0x00000000);
|
||||
THEME_CLR(theme, clrHighlight, 0xAA3A3A55);
|
||||
THEME_CLR(theme, clrHighlightBlending, 0xDD000000);
|
||||
THEME_CLR(theme, clrGridFontBack, clrTransparent);
|
||||
THEME_CLR(theme, clrGridActiveFontBack, 0xFFAFD533);
|
||||
THEME_CLR(theme, clrFont, clrWhite);
|
||||
THEME_CLR(theme, clrFontActive, 0xFF363636);
|
||||
THEME_CLR(theme, clrFontHeader, 0xFF363636);
|
||||
|
@ -66,7 +66,13 @@ void cDummyGrid::setText() {
|
||||
|
||||
void cDummyGrid::drawText() {
|
||||
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 (Height()/geoManager.minutePixel < 6)
|
||||
return;
|
||||
|
@ -98,7 +98,13 @@ void cEpgGrid::setText() {
|
||||
|
||||
void cEpgGrid::drawText() {
|
||||
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 (Height()/geoManager.minutePixel < 6)
|
||||
return;
|
||||
|
@ -8,6 +8,8 @@ clrGrid2 = EE888888
|
||||
clrGrid2Blending = 90000000
|
||||
clrHighlight = EE0033FF
|
||||
clrHighlightBlending = DD000000
|
||||
clrGridFontBack = 00000000
|
||||
clrGridActiveFontBack = 00000000
|
||||
clrFont = FFFFFFFF
|
||||
clrFontActive = FFFFFFFF
|
||||
clrFontHeader = FFFFFFFF
|
||||
|
@ -8,6 +8,8 @@ clrGrid2 = FF071871
|
||||
clrGrid2Blending = FF000000
|
||||
clrHighlight = FF7A6D6D
|
||||
clrHighlightBlending = FF1C1919
|
||||
clrGridFontBack = 00000000
|
||||
clrGridActiveFontBack = 00000000
|
||||
clrFont = FFFFFFFF
|
||||
clrFontActive = FFFFFFFF
|
||||
clrFontHeader = FF000000
|
||||
|
@ -8,6 +8,8 @@ clrGrid2 = DD333333
|
||||
clrGrid2Blending = 90000000
|
||||
clrHighlight = DDBB0000
|
||||
clrHighlightBlending = DD000000
|
||||
clrGridFontBack = 00000000
|
||||
clrGridActiveFontBack = 00000000
|
||||
clrFont = FFFFFFFF
|
||||
clrFontActive = FFFFFFFF
|
||||
clrFontHeader = FFFFFFFF
|
||||
|
@ -8,6 +8,8 @@ clrGrid2 = DD333333
|
||||
clrGrid2Blending = 90000000
|
||||
clrHighlight = DDBB0000
|
||||
clrHighlightBlending = DD000000
|
||||
clrGridFontBack = 00000000
|
||||
clrGridActiveFontBack = 00000000
|
||||
clrFont = FFFFFFFF
|
||||
clrFontActive = FFFFFFFF
|
||||
clrFontHeader = FFFFFFFF
|
||||
|
@ -8,6 +8,8 @@ clrGrid2 = 00000000
|
||||
clrGrid2Blending = 00000000
|
||||
clrHighlight = DD313548
|
||||
clrHighlightBlending = DD000000
|
||||
clrGridFontBack = 00000000
|
||||
clrGridActiveFontBack = FFAFD533
|
||||
clrFont = FFFFFFFF
|
||||
clrFontActive = FF363636
|
||||
clrFontHeader = FF363636
|
||||
|
@ -8,6 +8,8 @@ clrGrid2 = EE888888
|
||||
clrGrid2Blending = 90000000
|
||||
clrHighlight = EE006600
|
||||
clrHighlightBlending = 22000000
|
||||
clrGridFontBack = 00000000
|
||||
clrGridActiveFontBack = 00000000
|
||||
clrFont = FFFFFFFF
|
||||
clrFontActive = FFFFFFFF
|
||||
clrFontHeader = FFFFFFFF
|
||||
|
@ -4,6 +4,8 @@ clrBackground = DDFFFFFF
|
||||
clrBackgroundOSD = FFFFFFFF
|
||||
clrGrid1 = BB555555
|
||||
clrGrid2 = BB888888
|
||||
clrGridFontBack = 00000000
|
||||
clrGridActiveFontBack = 00000000
|
||||
clrHighlight = FF000044
|
||||
clrFont = FF000000
|
||||
clrFontActive = FFFFFFFF
|
||||
|
@ -4,6 +4,8 @@ clrBackground = FF111111
|
||||
clrBackgroundOSD = FF111111
|
||||
clrGrid1 = BB555555
|
||||
clrGrid2 = BB888888
|
||||
clrGridFontBack = 00000000
|
||||
clrGridActiveFontBack = 00000000
|
||||
clrHighlight = FF336699
|
||||
clrFont = FFFFFFFF
|
||||
clrFontActive = FFFFFFFF
|
||||
|
Loading…
Reference in New Issue
Block a user