[mythtv] themestate "wateched" in videos?

faginbagin mythtv at hbuus.com
Sat Jun 25 22:01:51 UTC 2016


It depends on the theme. A couple of months ago, I tweaked my version of MythCenter-wide/base.xml to add the watched icon (pair of eyes) to the list view in "Watch Videos". I'm including it here, in case you are using that theme, or want to change themes to get this feature. It adds the icon on the right hand side of each video that is marked as watched.

I got the idea (and code) from another theme, which I THINK was Mythbuntu, but I could be wrong.

HTH,
Helen
-------------- next part --------------
diff --git a/mythtv/themes/MythCenter-wide/base.xml b/mythtv/themes/MythCenter-wide/base.xml
index 23bca24..f952ca0 100644
--- a/mythtv/themes/MythCenter-wide/base.xml
+++ b/mythtv/themes/MythCenter-wide/base.xml
@@ -179,7 +179,7 @@
         <area>0,0,300,250</area>
         <layout>vertical</layout>
         <spacing>4</spacing>
-        <buttonarea>0,0,100%,97%</buttonarea>
+        <buttonarea>0,0,100%,95%</buttonarea>
         <statetype name="buttonitem">
             <area>0,0,100%,30</area>
             <state name="active">
@@ -196,6 +196,15 @@
                     <cutdown>yes</cutdown>
                     <align>left,vcenter</align>
                 </textarea>
+		<statetype name="watchedstate">
+		    <position>100%-20,7</position>
+		    <state name="yes">
+			<imagetype name="watchedimage">
+			    <filename>small_watched.png</filename>
+			    <preserveaspect>true</preserveaspect>
+			</imagetype>
+		    </state>
+		</statetype>
                 <statetype name="buttoncheck">
                     <position>91%,4</position>
                     <state type="off">
@@ -238,7 +247,7 @@
             </state>
         </statetype>
         <statetype name="upscrollarrow">
-            <position>10,96%</position>
+            <position>10,95%</position>
             <state type="off">
                 <imagetype name="upon">
                     <filename>lb-uparrow-reg.png</filename>
@@ -251,7 +260,7 @@
             </state>
         </statetype>
         <statetype name="downscrollarrow">
-            <position>40,96%</position>
+            <position>40,95%</position>
             <state type="off">
                 <imagetype name="dnon">
                     <filename>lb-dnarrow-reg.png</filename>


More information about the mythtv-dev mailing list