
mythtv at sky
Mar 10, 2012, 11:32 AM
Post #1 of 1
(242 views)
Permalink
|
|
MythMusic gallery playlist editor
|
|
Just a heads up for a change I made to the playlisttree that you will have to change if you have already themed that screen in MythMusic. Previously the buttonimage in the buttonlist used by the playlist buttontree showed both the albumart/genre icons and an icon to indicate the node type but that meant the node type icons filenames had to be hard coded and couldn't be changed by the themer. I've now added a nodetype state type to the buttonlist used in the playlisteditor that is shown to indicate the type of the node. The button image now only shows the coverart or genre icon if available, if not available the image is reset so the default filename supplied in the theme will be used (mm_nothumb.png in the default theme). If the current node is a type that doesn't show any coverart or icon then the buttonimage is effectively hidden by telling it to show the blank.png image which is always available in the default theme and the nodetype statetype will be shown instead. So to summarise the changes needed the buttonimage needs a default filename added that will be used when no coverart or genre icon can be found like so:- <imagetype name="buttonimage"> <area>42,10,110,110</area> <filename>mm_nothumb.png</filename> <<<---- add this line </imagetype> and a new nodetype statetype need adding like so:- <statetype name="nodetype"> <position>42,10</position> <state name="default" /> <state name="alltracks"> <imagetype name="alltracks"> <area>0,0,110,110</area> <filename>mm_alltracks.png</filename> </imagetype> </state> <state name="genres"> <imagetype name="genres"> <area>0,0,110,110</area> <filename>mm_genres.png</filename> </imagetype> </state> <state name="albums"> <imagetype name="albums"> <area>0,0,110,110</area> <filename>mm_albums.png</filename> </imagetype> </state> <state name="artists"> <imagetype name="artists"> <area>0,0,110,110</area> <filename>mm_artists.png</filename> </imagetype> </state> <state name="compartists"> <imagetype name="compartists"> <area>0,0,110,110</area> <filename>mm_compartists.png</filename> </imagetype> </state> <state name="ratings"> <imagetype name="ratings"> <area>0,0,110,110</area> <filename>mm_ratings.png</filename> </imagetype> </state> <state name="years"> <imagetype name="years"> <area>0,0,110,110</area> <filename>mm_years.png</filename> </imagetype> </state> <state name="compilations"> <imagetype name="compilations"> <area>0,0,110,110</area> <filename>mm_compilations.png</filename> </imagetype> </state> <state name="playlists"> <imagetype name="playlists"> <area>0,0,110,110</area> <filename>mm_playlists.png</filename> </imagetype> </state> <state name="smartplaylists"> <imagetype name="smartplaylists"> <area>0,0,110,110</area> <filename>mm_smartplaylists.png</filename> </imagetype> </state> </statetype> Paul H. _______________________________________________ mythtv-theming mailing list mythtv-theming [at] mythtv http://www.mythtv.org/mailman/listinfo/mythtv-theming
|