Skip to content

Commit

Permalink
MythMusic: Add an icon for the CD node in the playlist editor
Browse files Browse the repository at this point in the history
Themers Note: this add a new 'cd' state to the 'nodetype' statetype in
the button list used for the playlist_tree.
  • Loading branch information
Paul Harrison committed May 27, 2013
1 parent d44fd08 commit ea54bba
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mythplugins/mythmusic/mythmusic/playlisteditorview.cpp
Expand Up @@ -887,6 +887,11 @@ void PlaylistEditorView::treeItemVisible(MythUIButtonListItem *item)
state = "compilations";
artFile="blank.png";
}
else if (mnode->getAction() == "cd")
{
state = "cd";
artFile="blank.png";
}
else if (mnode->getAction() == "directory")
{
state = "directory";
Expand Down
6 changes: 6 additions & 0 deletions mythplugins/mythmusic/theme/default-wide/music-base.xml
Expand Up @@ -558,6 +558,12 @@
<filename>mm_compilations.png</filename>
</imagetype>
</state>
<state name="cd">
<imagetype name="cd">
<area>0,0,110,110</area>
<filename>mm_cd.png</filename>
</imagetype>
</state>
<state name="directory">
<imagetype name="directory">
<area>0,0,110,110</area>
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions mythplugins/mythmusic/theme/default/music-base.xml
Expand Up @@ -288,6 +288,12 @@
<filename>mm_compilations.png</filename>
</imagetype>
</state>
<state name="cd">
<imagetype name="cd">
<area>0,0,80,80</area>
<filename>mm_cd.png</filename>
</imagetype>
</state>
<state name="directory">
<imagetype name="directory">
<area>0,0,80,80</area>
Expand Down
2 changes: 1 addition & 1 deletion mythplugins/mythmusic/theme/theme.pro
@@ -1,6 +1,6 @@
include ( ../../mythconfig.mak )
include ( ../../settings.pro )

QMAKE_STRIP = echo

TARGET = themenop
Expand Down
6 changes: 6 additions & 0 deletions mythtv/themes/MythCenter-wide/music-base.xml
Expand Up @@ -558,6 +558,12 @@
<filename>mm_compilations.png</filename>
</imagetype>
</state>
<state name="cd">
<imagetype name="cd">
<area>0,0,110,110</area>
<filename>mm_cd.png</filename>
</imagetype>
</state>
<state name="directory">
<imagetype name="directory">
<area>0,0,110,110</area>
Expand Down

0 comments on commit ea54bba

Please sign in to comment.