[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.

-------------- 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 @@
-        <buttonarea>0,0,100%,97%</buttonarea>
+        <buttonarea>0,0,100%,95%</buttonarea>
         <statetype name="buttonitem">
             <state name="active">
@@ -196,6 +196,15 @@
+		<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">
                     <state type="off">
@@ -238,7 +247,7 @@
         <statetype name="upscrollarrow">
-            <position>10,96%</position>
+            <position>10,95%</position>
             <state type="off">
                 <imagetype name="upon">
@@ -251,7 +260,7 @@
         <statetype name="downscrollarrow">
-            <position>40,96%</position>
+            <position>40,95%</position>
             <state type="off">
                 <imagetype name="dnon">

More information about the mythtv-dev mailing list