summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2013-11-20 22:34:41 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2013-11-20 22:34:41 +0100
commit185b81474ca56f7f17d60fa89c64183147423e43 (patch)
tree415a625e40aa15dc4ad1ad467161c8b571a5d188
parenta36c3a152bce656b04cddabfe2d803045001f1c0 (diff)
downloadskin-flatplus-185b81474ca56f7f17d60fa89c64183147423e43.tar.gz
skin-flatplus-185b81474ca56f7f17d60fa89c64183147423e43.tar.bz2
small fix, add icons
-rw-r--r--displaymenu.c11
-rw-r--r--icons/aspect.pdnbin7950 -> 0 bytes
-rw-r--r--icons/default/menuIcons/Miscellaneous.pngbin0 -> 3202 bytes
-rw-r--r--icons/default/menuIcons/OSD.pngbin0 -> 5445 bytes
-rw-r--r--icons/default/menuIcons/blank.pngbin0 -> 429 bytes
-rw-r--r--icons/resolution.pdnbin9098 -> 0 bytes
-rw-r--r--icons/sd_hd.pdnbin9212 -> 0 bytes
7 files changed, 9 insertions, 2 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 3f40dae0..4ce767ff 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -184,8 +184,10 @@ void cFlatDisplayMenu::SetTitle(const char *Title) {
cString icon;
switch( menuCategory ) {
case mcMain:
+ TopBarSetTitle("");
icon = "menuIcons/vdrlogo";
break;
+ case mcSchedule:
case mcScheduleNow:
case mcScheduleNext:
icon = "menuIcons/Schedule";
@@ -360,7 +362,12 @@ void cFlatDisplayMenu::SetItem(const char *Text, int Index, bool Current, bool S
if (imgLoader.LoadIcon(*cIcon, fontHeight)) {
//printf("icon %s\n", *cIcon);
menuIconsPixmap->DrawImage(cPoint(xt + Config.decorBorderMenuItemSize, y), imgLoader.GetImage());
- }// else
+ } else {
+ if (imgLoader.LoadIcon("menuIcons/blank", fontHeight)) {
+ //printf("icon %s\n", *cIcon);
+ menuIconsPixmap->DrawImage(cPoint(xt + Config.decorBorderMenuItemSize, y), imgLoader.GetImage());
+ }
+ }
//printf("no icon %s\n", *cIcon);
menuPixmap->DrawText(cPoint(fontHeight + marginItem + xt + Config.decorBorderMenuItemSize, y), s, ColorFg, ColorBg, font,
@@ -1036,7 +1043,7 @@ void cFlatDisplayMenu::SetText(const char *Text, bool FixedFont) {
contentHeadPixmap->Fill(clrTransparent);
int Left = Config.decorBorderMenuContentSize;
- int Top = topBarHeight + marginItem + Config.decorBorderTopBarSize*2 + Config.decorBorderMenuContentHeadSize;
+ int Top = topBarHeight + marginItem + Config.decorBorderTopBarSize*2 + Config.decorBorderMenuContentSize;
int Width = menuWidth - Config.decorBorderMenuContentSize*2;
int Height = osdHeight - (topBarHeight + Config.decorBorderTopBarSize*2 +
buttonsHeight + Config.decorBorderButtonSize*2 + marginItem*3);
diff --git a/icons/aspect.pdn b/icons/aspect.pdn
deleted file mode 100644
index 5dfee2dd..00000000
--- a/icons/aspect.pdn
+++ /dev/null
Binary files differ
diff --git a/icons/default/menuIcons/Miscellaneous.png b/icons/default/menuIcons/Miscellaneous.png
new file mode 100644
index 00000000..d4bd9b53
--- /dev/null
+++ b/icons/default/menuIcons/Miscellaneous.png
Binary files differ
diff --git a/icons/default/menuIcons/OSD.png b/icons/default/menuIcons/OSD.png
new file mode 100644
index 00000000..e34d7cac
--- /dev/null
+++ b/icons/default/menuIcons/OSD.png
Binary files differ
diff --git a/icons/default/menuIcons/blank.png b/icons/default/menuIcons/blank.png
new file mode 100644
index 00000000..d32037f7
--- /dev/null
+++ b/icons/default/menuIcons/blank.png
Binary files differ
diff --git a/icons/resolution.pdn b/icons/resolution.pdn
deleted file mode 100644
index 2b528695..00000000
--- a/icons/resolution.pdn
+++ /dev/null
Binary files differ
diff --git a/icons/sd_hd.pdn b/icons/sd_hd.pdn
deleted file mode 100644
index a16a0876..00000000
--- a/icons/sd_hd.pdn
+++ /dev/null
Binary files differ