summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-10-25 20:50:08 +0200
committerlouis <louis.braun@gmx.de>2013-10-25 20:50:08 +0200
commit1aa2f6ace2419406b305f9fe238d9d341f761c73 (patch)
treeb58da850e207efd038ac0b88cbdf9fa444667dfd /timers.c
parent086588958f25fcf065a947bd908e65c4a4c345bd (diff)
downloadskin-nopacity-1aa2f6ace2419406b305f9fe238d9d341f761c73.tar.gz
skin-nopacity-1aa2f6ace2419406b305f9fe238d9d341f761c73.tar.bz2
Version 0.9.0
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/timers.c b/timers.c
index 929d5d7..b58fbd7 100644
--- a/timers.c
+++ b/timers.c
@@ -107,7 +107,7 @@ void cNopacityTimer::CalculateHeight(int space) {
height = numLines * lineHeight + 2*space;
} else {
int lineHeight = font->Height();
- height = config.timersLogoHeight + (numLines +1)* lineHeight + 2*space;
+ height = config.GetValue("timersLogoHeight") + (numLines +1)* lineHeight + 2*space;
}
}
@@ -124,7 +124,7 @@ void cNopacityTimer::Render(void) {
if (isTimerConflict) {
pixmapLogo->Fill(clrTransparent);
pixmap->Fill(Theme.Color(clrDiskAlert));
- if (config.doBlending) {
+ if (config.GetValue("displayType") == dtBlending) {
cImage imgBack = imgCache->GetBackground(Theme.Color(clrDiskAlert), Theme.Color(clrMenuItemHigh), width-2, height-2);
pixmap->DrawImage(cPoint(1,1), imgBack);
} else {
@@ -144,7 +144,7 @@ void cNopacityTimer::Render(void) {
DrawLogo();
if (timer->Recording()) {
pixmap->Fill(Theme.Color(clrDiskAlert));
- if (config.doBlending) {
+ if (config.GetValue("displayType") == dtBlending) {
cImage imgBack = imgCache->GetBackground(Theme.Color(clrDiskAlert), Theme.Color(clrMenuItemHigh), width-2, height-2);
pixmap->DrawImage(cPoint(1,1), imgBack);
} else {
@@ -152,7 +152,7 @@ void cNopacityTimer::Render(void) {
}
} else {
pixmap->Fill(Theme.Color(clrMenuBorder));
- if (config.doBlending) {
+ if (config.GetValue("displayType") == dtBlending) {
cImage imgBack = imgCache->GetBackground(Theme.Color(clrTimersBack), Theme.Color(clrTimersBackBlend), width-2, height-2);
pixmap->DrawImage(cPoint(1,1), imgBack);
} else {
@@ -160,10 +160,10 @@ void cNopacityTimer::Render(void) {
}
}
- pixmapText->DrawText(cPoint(5, config.timersLogoHeight), *Date, Theme.Color(clrMenuFontTimersHeader), clrTransparent, fontLarge);
+ pixmapText->DrawText(cPoint(5, config.GetValue("timersLogoHeight")), *Date, Theme.Color(clrMenuFontTimersHeader), clrTransparent, fontLarge);
int lineHeight = font->Height();
- int yStart = config.timersLogoHeight + lineHeight + 3;
+ int yStart = config.GetValue("timersLogoHeight") + lineHeight + 3;
int numLines = showName.Lines();
for (int line=0; line<numLines; line++)
pixmapText->DrawText(cPoint(5, yStart+line*(lineHeight-2)), showName.GetLine(line), Theme.Color(clrMenuFontTimers), clrTransparent, font);
@@ -172,9 +172,9 @@ void cNopacityTimer::Render(void) {
void cNopacityTimer::DrawLogo(void) {
pixmapLogo->Fill(clrTransparent);
- int showTimerLogo = (config.showTimers < 2) ? 1 : 0;
- int logoWidth = config.timersLogoWidth;
- int logoHeight = config.timersLogoHeight;
+ int showTimerLogo = (config.GetValue("showTimers") < 2) ? 1 : 0;
+ int logoWidth = config.GetValue("timersLogoWidth");
+ int logoHeight = config.GetValue("timersLogoHeight");
const cChannel *Channel = timer->Channel();
if (Channel) {
bool logoFound = false;