summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-10-17 18:31:37 +0200
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-10-17 18:31:37 +0200
commit9623b0ab9e2d09902207d569cb32140139912f99 (patch)
treedbd9e91fcfaeb42a1af16b60ea9951168c0a50ea
parent2a58ea17389c0a6024cd0ff7697e96dffbc0990e (diff)
downloadskin-flatplus-9623b0ab9e2d09902207d569cb32140139912f99.tar.gz
skin-flatplus-9623b0ab9e2d09902207d569cb32140139912f99.tar.bz2
update recordings sort symbol
-rw-r--r--baserender.c4
-rw-r--r--displaymenu.c9
2 files changed, 6 insertions, 7 deletions
diff --git a/baserender.c b/baserender.c
index a622f309..b2989a66 100644
--- a/baserender.c
+++ b/baserender.c
@@ -445,8 +445,8 @@ void cFlatBaseRender::TopBarUpdate(void) {
if( topBarMenuIconRightSet ) {
cImage *img = imgLoader.LoadIcon(*topBarMenuIconRight, 999, topBarHeight - marginItem*2);
if( img ) {
- titleMaxWidth -= img->Width()+marginItem*2;
- int IconLeft = titleLeft + topBarFont->Width(topBarTitle) + marginItem;
+ titleMaxWidth -= img->Width()+marginItem*4;
+ int IconLeft = titleLeft + topBarFont->Width(topBarTitle) + marginItem*3;
int iconTop = (topBarHeight / 2 - img->Height()/2);
topBarIconPixmap->DrawImage(cPoint(IconLeft, iconTop), *img);
}
diff --git a/displaymenu.c b/displaymenu.c
index 54d09121..a27906b7 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -253,11 +253,6 @@ void cFlatDisplayMenu::SetTitle(const char *Title) {
}
break;
case mcRecording:
- if( RecordingsSortMode == rsmName )
- TopBarSetMenuIconRight("menuIcons/RecsSortName");
- else if( RecordingsSortMode == rsmTime )
- TopBarSetMenuIconRight("menuIcons/RecsSortDate");
-
if( Config.MenuRecordingShowCount ) {
int recCount = 0, recNewCount = 0;
for(cRecording *Rec = Recordings.First(); Rec; Rec = Recordings.Next(Rec)) {
@@ -268,6 +263,10 @@ void cFlatDisplayMenu::SetTitle(const char *Title) {
cString newTitle = cString::sprintf("%s (%d*/%d)", Title, recNewCount, recCount);
TopBarSetTitle(*newTitle);
}
+ if( RecordingsSortMode == rsmName )
+ TopBarSetMenuIconRight("menuIcons/RecsSortName");
+ else if( RecordingsSortMode == rsmTime )
+ TopBarSetMenuIconRight("menuIcons/RecsSortDate");
icon = "menuIcons/Recordings";
break;
case mcSetup: