summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-05-08 18:31:01 +0200
committerlouis <louis.braun@gmx.de>2013-05-08 18:31:01 +0200
commitec606cea46a25009182b03eb9bbd53bea362bdbd (patch)
tree4bf273553e9bb826dd57c566e97cabc47ec2f008 /timers.c
parentcdcbf602021a64393669a28fbd7de1c7ddd23fa1 (diff)
downloadskin-nopacity-ec606cea46a25009182b03eb9bbd53bea362bdbd.tar.gz
skin-nopacity-ec606cea46a25009182b03eb9bbd53bea362bdbd.tar.bz2
Introduced plain style without any blending effects
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/timers.c b/timers.c
index 2199a72..930df48 100644
--- a/timers.c
+++ b/timers.c
@@ -117,8 +117,12 @@ void cNopacityTimer::Render(void) {
if (isTimerConflict) {
pixmapLogo->Fill(clrTransparent);
pixmap->Fill(Theme.Color(clrDiskAlert));
- imgLoader.DrawBackground(Theme.Color(clrDiskAlert), Theme.Color(clrMenuItemHigh), width-2, height-2);
- pixmap->DrawImage(cPoint(1,1), imgLoader.GetImage());
+ if (config.doBlending) {
+ imgLoader.DrawBackground(Theme.Color(clrDiskAlert), Theme.Color(clrMenuItemHigh), width-2, height-2);
+ pixmap->DrawImage(cPoint(1,1), imgLoader.GetImage());
+ } else {
+ pixmap->DrawRectangle(cRect(1, 1, width-2, height-2), Theme.Color(clrDiskAlert));
+ }
int numLines = showName.Lines();
int textWidth = 0;
int x = 0;
@@ -133,12 +137,20 @@ void cNopacityTimer::Render(void) {
DrawLogo();
if (timer->Recording()) {
pixmap->Fill(Theme.Color(clrDiskAlert));
- imgLoader.DrawBackground(Theme.Color(clrDiskAlert), Theme.Color(clrMenuItemHigh), width-2, height-2);
- pixmap->DrawImage(cPoint(1,1), imgLoader.GetImage());
+ if (config.doBlending) {
+ imgLoader.DrawBackground(Theme.Color(clrDiskAlert), Theme.Color(clrMenuItemHigh), width-2, height-2);
+ pixmap->DrawImage(cPoint(1,1), imgLoader.GetImage());
+ } else {
+ pixmap->DrawRectangle(cRect(1, 1, width-2, height-2), Theme.Color(clrDiskAlert));
+ }
} else {
pixmap->Fill(Theme.Color(clrMenuBorder));
- imgLoader.DrawBackground(Theme.Color(clrMenuItemHighBlend), Theme.Color(clrMenuItemHigh), width-2, height-2);
- pixmap->DrawImage(cPoint(1,1), imgLoader.GetImage());
+ if (config.doBlending) {
+ imgLoader.DrawBackground(Theme.Color(clrMenuItemHighBlend), Theme.Color(clrMenuItemHigh), width-2, height-2);
+ pixmap->DrawImage(cPoint(1,1), imgLoader.GetImage());
+ } else {
+ pixmap->DrawRectangle(cRect(1, 1, width-2, height-2), Theme.Color(clrMenuItemHigh));
+ }
}
pixmap->DrawText(cPoint(5, config.timersLogoHeight), *Date, Theme.Color(clrMenuFontTimersHeader), clrTransparent, fontLarge);