TimerList: add icon Autotimer
authorDima73 <Dima-73@inbox.lv>
Tue, 8 Dec 2015 18:33:14 +0000 (20:33 +0200)
committerDima73 <Dima-73@inbox.lv>
Tue, 8 Dec 2015 18:33:14 +0000 (20:33 +0200)
data/skin_default/icons/Makefile.am
data/skin_default/icons/timer_autotimer.png [new file with mode: 0644]
lib/python/Components/TimerList.py

index 742b1fe..4e18f4e 100644 (file)
@@ -111,7 +111,7 @@ dist_install_DATA = \
        selectioncross.png \
        shuffle.png \
        timer_done.png  timer_prep.png  timer_rep.png   timer_zap.png \
-       timer_off.png   timer_rec.png   timer_wait.png \
+       timer_off.png   timer_rec.png   timer_wait.png   timer_autotimer.png \
        trashcan.png \
        unlock.png \
        unlockBouquet.png \
diff --git a/data/skin_default/icons/timer_autotimer.png b/data/skin_default/icons/timer_autotimer.png
new file mode 100644 (file)
index 0000000..f135215
Binary files /dev/null and b/data/skin_default/icons/timer_autotimer.png differ
index 62fdc16..537eb8e 100644 (file)
@@ -43,6 +43,8 @@ class TimerList(HTMLComponent, GUIComponent, object):
                                res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, self.iconMargin / 2, self.rowSplit + (self.itemHeight - self.rowSplit - self.iconHeight) / 2, self.iconWidth, self.iconHeight, self.iconRepeat))
                else:
                        repeatedtext = begin[0] # date
+                       if timer.tags and "newAT" in timer.tags:
+                               self.iconAutoTimer and res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, self.iconMargin / 2, self.rowSplit + (self.itemHeight - self.rowSplit - self.iconHeight) / 2, self.iconWidth, self.iconHeight, self.iconAutoTimer))
                if timer.justplay:
                        text = repeatedtext + ((" %s "+ _("(ZAP)")) % (begin[1]))
                else:
@@ -105,6 +107,7 @@ class TimerList(HTMLComponent, GUIComponent, object):
                self.iconRepeat = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/timer_rep.png"))
                self.iconZapped = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/timer_zap.png"))
                self.iconDisabled = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/timer_off.png"))
+               self.iconAutoTimer = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/timer_autotimer.png"))
 
        def applySkin(self, desktop, parent):
                def itemHeight(value):