Skip to content

Commit

Permalink
[music info dialog] added support for record labels
Browse files Browse the repository at this point in the history
  • Loading branch information
beatmasterRS committed Jan 11, 2019
1 parent ec441c2 commit 33e1f8d
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
18 changes: 14 additions & 4 deletions 1080i/DialogMusicInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
<height>300</height>
<onleft>9000</onleft>
<onright>62</onright>

<onup>50</onup>
<ondown>50</ondown>
<viewtype label="">list</viewtype>
Expand All @@ -181,7 +182,7 @@
<font>Tiny</font>
<label>$INFO[ListItem.TrackNumber,,]. $INFO[ListItem.Label] </label>
</control>

<control type="label">
<textcolor>Dark2</textcolor>
<height>50</height>
Expand Down Expand Up @@ -212,9 +213,7 @@
<left>750</left>
<label>$INFO[ListItem.Duration] </label>
</control>




</control>
</focusedlayout>
</control>
Expand Down Expand Up @@ -580,6 +579,17 @@
<label fallback="19055">$INFO[ListItem.Property(Album_Label)]</label>
<aligny>center</aligny>
</control>

<control type="image">
<height>120</height>
<width>180</width>
<right>0</right>
<top>-185</top>
<aspectratio aligny="center" align="right">keep</aspectratio>
<texture colordiffuse="Dark1">$VAR[ThumbImageRecordLabelDialogInfo]</texture>
<visible>!String.IsEmpty(Skin.String(recordlabel.logos.path))</visible>
</control>

</control>
<control type="group">
<height>36</height>
Expand Down
2 changes: 1 addition & 1 deletion 1080i/DialogVideoInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<bottom>224</bottom>
<top>335</top>
<control type="group">
<align>right</align>
<align>right</align>
<control type="image">
<height>60</height>
<width>180</width>
Expand Down
6 changes: 4 additions & 2 deletions 1080i/Includes_Images.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@
</variable>
<variable name="ThumbImageStudiosDialogInfo">
<value condition="!String.IsEmpty(Skin.String(studio.logos.path))">$INFO[Skin.String(studio.logos.path),,/]$INFO[ListItem.Studio,,.png]</value>
<value condition="!String.IsEmpty(Skin.String(record.labels.path))">$INFO[Skin.String(record.labels.path),,/]$INFO[ListItem.Studio,,.png]</value>

<value condition="!String.IsEmpty(Skin.String(record.labels.path))">$INFO[Skin.String(record.labels.path),,/]$INFO[ListItem.Studio,,.png]</value>
</variable>
<variable name="ThumbImageRecordLabelDialogInfo">
<value condition="!String.IsEmpty(Skin.String(recordlabel.logos.path))">$INFO[Skin.String(recordlabel.logos.path),,/]$INFO[ListItem.Property(Album_Label),,.png]</value>
</variable>
<variable name="PlayerPoster">
<value condition="!String.IsEmpty(Player.Art(tvshow.poster))">$INFO[Player.Art(tvshow.poster)]</value>
Expand Down
4 changes: 4 additions & 0 deletions 1080i/Includes_Labels.xml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@
<value condition="!String.IsEmpty(Skin.String(studio.logos.name))">$INFO[Skin.String(studio.logos.name)]</value>
<value>none</value>
</variable>
<variable name="Label_RecordLabelIcons">
<value condition="!String.IsEmpty(Skin.String(recordlabel.logos.name))">$INFO[Skin.String(recordlabel.logos.name)]</value>
<value>none</value>
</variable>

<variable name="Label_MusicPlayerCodec">
<value condition="String.Contains(MusicPlayer.Codec, mp3)">mp3</value>
Expand Down
11 changes: 10 additions & 1 deletion 1080i/SkinSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,16 @@
<label>Studio Icons</label>
<label2>$VAR[Label_StudioIcons]</label2>
<onclick>RunScript(script.image.resource.select,property=studio.logos&amp;type=resource.images.studios)</onclick>
</control>
</control>

<control type="button" id="9285" description="Studios">
<width>1310</width>
<visible>ControlGroup(9100).HasFocus(9110)</visible>
<include>DefSettingsButton</include>
<label>Record Label Icons</label>
<label2>$VAR[Label_RecordLabelIcons]</label2>
<onclick>RunScript(script.image.resource.select,property=recordlabel.logos&amp;type=resource.images.recordlabels)</onclick>
</control>


<!-- Addons -->
Expand Down

0 comments on commit 33e1f8d

Please sign in to comment.