diff options
author | louis <louis.braun@gmx.de> | 2013-05-28 17:06:53 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-05-28 17:06:53 +0200 |
commit | 6a6db7ff523943ec904ee85837b62885da64706e (patch) | |
tree | 33b8f207d0b047cca3e3225deaa2598a337fefb3 /dummygrid.c | |
parent | a90ee76c4b36a9d11fa63e6a454a362cff7dcb31 (diff) | |
download | vdr-plugin-tvguide-6a6db7ff523943ec904ee85837b62885da64706e.tar.gz vdr-plugin-tvguide-6a6db7ff523943ec904ee85837b62885da64706e.tar.bz2 |
font color of active grid themable
Diffstat (limited to 'dummygrid.c')
-rw-r--r-- | dummygrid.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dummygrid.c b/dummygrid.c index 0c3ca20..85e75b9 100644 --- a/dummygrid.c +++ b/dummygrid.c @@ -57,23 +57,24 @@ void cDummyGrid::setText() { } void cDummyGrid::drawText() { + tColor colorText = (active)?theme.Color(clrFontActive):theme.Color(clrFont); if (tvguideConfig.displayMode == eVertical) { if (Height()/tvguideConfig.minutePixel < 6) return; int textHeight = tvguideConfig.FontGrid->Height(); int textLines = text->Lines(); for (int i=0; i<textLines; i++) { - pixmap->DrawText(cPoint(borderWidth, borderWidth + i*textHeight), text->GetLine(i), theme.Color(clrFont), clrTransparent, tvguideConfig.FontGrid); + pixmap->DrawText(cPoint(borderWidth, borderWidth + i*textHeight), text->GetLine(i), colorText, clrTransparent, tvguideConfig.FontGrid); } } else if (tvguideConfig.displayMode == eHorizontal) { if (Width()/tvguideConfig.minutePixel < 10) { int titleY = (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontal->Height())/2; - pixmap->DrawText(cPoint(borderWidth - 2, titleY), "...", theme.Color(clrFont), clrTransparent, tvguideConfig.FontGridHorizontal); + pixmap->DrawText(cPoint(borderWidth - 2, titleY), "...", colorText, clrTransparent, tvguideConfig.FontGridHorizontal); return; } int titleY = (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontal->Height())/2; - pixmap->DrawText(cPoint(borderWidth, titleY), *strText, theme.Color(clrFont), clrTransparent, tvguideConfig.FontGridHorizontal); + pixmap->DrawText(cPoint(borderWidth, titleY), *strText, colorText, clrTransparent, tvguideConfig.FontGridHorizontal); } } cString cDummyGrid::getText(void) { |