Skip to content

Commit

Permalink
Add default theme for full screen notification error and missing artwork
Browse files Browse the repository at this point in the history
This is not the behaviour I wanted. I wanted the image to be centered horizontally and be at y=0. I haven't been able to achieve this, it doesn't behave according to theme documentation.
Centering using -1,-1 doesn't work either
  • Loading branch information
jyavenard committed Jul 19, 2013
1 parent 6a8293c commit d6524c0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
Binary file added mythtv/themes/default/noartwork512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 31 additions & 3 deletions mythtv/themes/default/notification-ui.xml
Expand Up @@ -99,7 +99,7 @@
<state name="error">
<area>0,0,100%,100%</area>
<imagetype name="imageerror">
<!-- Artist: Kyo-Tux -->
<!-- Artist: Kyo-Tux http://www.iconarchive.com/show/phuzion-icons-by-kyo-tux/Sign-Error-icon.html -->
<filename>error.png</filename>
<area>18,18,144,144</area>
</imagetype>
Expand Down Expand Up @@ -158,9 +158,37 @@
<fill color="#000000"/>
</shape>

<imagetype name="image">
<statetype name="mediastate">
<area>0,0,100%,100%</area>
<state name="ok"/>
<state name="noartwork">
<area>0,0,100%,100%</area>
<imagetype name="imageartwork">
<!-- Artist: Vargas21 http://www.iconarchive.com/show/aquave-metal-icons-by-vargas21/Music-icon.html -->
<filename>noartwork512.png</filename>
<area>0,0,100%,100%</area>
<preserveaspect>true</preserveaspect>
</imagetype>
</state>
</statetype>

<statetype name="errorstate">
<area>0,0,100%,100%</area>
<state name="ok"/>
<state name="error">
<area>0,0,100%,100%</area>
<imagetype name="imageerror">
<!-- Artist: Kyo-Tux http://www.iconarchive.com/show/phuzion-icons-by-kyo-tux/Sign-Error-icon.html -->
<filename>error.png</filename>
<area>0,0,100%,100%</area>
<preserveaspect>true</preserveaspect>
</imagetype>
</state>
</statetype>

<imagetype name="image" depends="!mediastate&amp;!errorstate">
<filename>damaged.png</filename>
<area>-1,-1,100%,100%</area>
<area>0,0,100%,100%</area>
<preserveaspect>true</preserveaspect>
</imagetype>

Expand Down

0 comments on commit d6524c0

Please sign in to comment.