From fa1a833f2d4597372eb82cad8f9c187990249a35 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 3 Nov 2013 13:20:51 +0100 Subject: improved display of text progress bar in wide menus --- HISTORY | 1 + menuitem.c | 6 +++--- 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); } } -- cgit v1.2.3