summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--menuitem.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index d69e693..e0f869e 100644
--- a/HISTORY
+++ b/HISTORY
@@ -342,3 +342,4 @@ Version 0.1.4
configurable via plugin setup menu. The number of menu items in
schedules menu also sets the number of menu items in channels and
timers menu.
+- improved display of text progress bar in wide menus
diff --git a/menuitem.c b/menuitem.c
index e271fd8..078056c 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -1476,10 +1476,10 @@ void cNopacityDefaultMenuItem::DrawProgressBar(int x, int width, const char *bar
}
}
if (isProgressbar) {
- pixmapBackground->DrawRectangle(cRect(x+5, height/4, width-10, height/2), color);
- pixmapBackground->DrawRectangle(cRect(x+7, height/4+2, width-14, height/2-4), Theme.Color(clrMenuItemBlend));
+ pixmapStatic->DrawRectangle(cRect(x+5, height/4, width-10, height/2), color);
+ pixmapStatic->DrawRectangle(cRect(x+7, height/4+2, width-14, height/2-4), clrTransparent);
double progress = (double)now/(double)total;
- pixmapBackground->DrawRectangle(cRect(x+8, height/4+3, (width-16)*progress, height/2-6), color);
+ pixmapStatic->DrawRectangle(cRect(x+8, height/4+3, (width-16)*progress, height/2-6), color);
}
}