From e0b952ece343c9591c9fab064fde85600b7beabf Mon Sep 17 00:00:00 2001 From: "M. Liebmann" Date: Fri, 4 Mar 2016 13:57:37 +0100 Subject: [PATCH] tmdb: Add star icons (THX flk) --- data/icons/Makefile.am | 2 ++ data/icons/star-off.png | Bin 0 -> 1034 bytes data/icons/star-on.png | Bin 0 -> 1139 bytes src/gui/epgview.cpp | 12 +++++------- src/gui/widget/icons.h | 2 ++ 5 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 data/icons/star-off.png create mode 100644 data/icons/star-on.png 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 0000000000000000000000000000000000000000..d40be7f27af0bb2b6ad9c585494933b6d2ea3724 GIT binary patch literal 1034 zcmV+l1oiugP)DKyZ1(>F>wxX;?Kg}u zS*=!iKA#_cu7JtG!GRP)NY1$|7K`a;p{}m3{%l#6bX`|6#$=^Zk*QQF_LQIc*fx~Q z<+kqb?yo7Oa2y9h2!ui*^z`)n0$}vfW!5XRv$L&+VT26B2pWbFqLhZbUhikUy}jQz zH#Za0G$Ew~Ap{o}7pz<^zv7%9*tY%7w(U#DaV~4M+PlfgNfQ9b+S=NSa5%hX7=}tI zRaI406-7}sO;ahQMAvmN#!#(RA%p+`NGahs4mjt+bzROFrva+om-71hx^y?V2f+ZK>$;+8T7TX7AqgSi zx-Jw&@dN^a{s$+&|JpQ7BdV(Q-R<}Jd$>tN_;#6Nnx-Kb3?dv3 z!?LXHjg5^j1_uW}9U2;nluD(a&d<-^nx+Zcw&C;n`g}g0=Si@lD4$0n5m=Umot>TU z3WdTaqobn>_3@FBksr^_&OR)aN^_-B3Bh2{!x;PM$uybE<=*7;`QN6druN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ui/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"