diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am index c662933d7..e1ffa5c61 100644 --- a/data/icons/Makefile.am +++ b/data/icons/Makefile.am @@ -244,6 +244,8 @@ install_DATA += \ shell.png \ shutdown.jpg \ softupdate.png \ + star-off.png \ + star-on.png \ start.jpg \ streaming.png \ subt.png \ diff --git a/data/icons/star-off.png b/data/icons/star-off.png new file mode 100644 index 000000000..d40be7f27 Binary files /dev/null and b/data/icons/star-off.png differ diff --git a/data/icons/star-on.png b/data/icons/star-on.png new file mode 100644 index 000000000..dec690428 Binary files /dev/null and b/data/icons/star-on.png differ diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index d8283ef8d..5d309562d 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -281,13 +281,11 @@ void CEpgData::showText( int startPos, int ypos, bool cover, bool fullClear) if (stars > 0 && startPos == 0){ int icon_w,icon_h; - frameBuffer->getIconSize(ICONSDIR"/star-off.png", &icon_w, &icon_h); - for (int i=1; i < 11;i++) { - frameBuffer->paintIcon(ICONSDIR"/star-off.png", sx+3+cover_offset+i*icon_w+3, ypos+3); - } - for (int i=1; i < stars+1;i++) { - frameBuffer->paintIcon(ICONSDIR"/star-on.png", sx+3+cover_offset+i*icon_w+3, ypos+3); - } + frameBuffer->getIconSize(NEUTRINO_ICON_STAR_OFF, &icon_w, &icon_h); + for (int i = 0; i < 10; i++) + frameBuffer->paintIcon(NEUTRINO_ICON_STAR_OFF, sx+10+cover_offset + i*(icon_w+3), ypos+3); + for (int i = 0; i < stars; i++) + frameBuffer->paintIcon(NEUTRINO_ICON_STAR_ON, sx+10+cover_offset + i*(icon_w+3), ypos+3); } int sbc = ((textSize - 1)/ medlinecount) + 1; diff --git a/src/gui/widget/icons.h b/src/gui/widget/icons.h index 5f380c7c8..0fbb826d3 100644 --- a/src/gui/widget/icons.h +++ b/src/gui/widget/icons.h @@ -179,6 +179,8 @@ #define NEUTRINO_ICON_RECORDING_EVENT_MARKER "rec_event_marker" #define NEUTRINO_ICON_ZAP "zap" #define NEUTRINO_ICON_PIP "pip" +#define NEUTRINO_ICON_STAR_ON "star-on" +#define NEUTRINO_ICON_STAR_OFF "star-off" #define DUMMY_ICON "dummy"