Merge pull request #95 from gade01/master-fix-pvr-radio-record-button

Fix MusicOSD.xml record button
This commit is contained in:
DaVukovic
2021-02-21 19:42:48 +01:00
committed by GitHub
4 changed files with 40 additions and 3 deletions

View File

@ -322,13 +322,17 @@
<enable>Visualisation.HasPresets</enable>
<animation effect="fade" start="100" end="50" time="75" condition="!Visualisation.HasPresets">Conditional</animation>
</control>
<control type="button" id="704">
<control type="togglebutton" id="704">
<width>55</width>
<height>55</height>
<label>264</label>
<altlabel>265</altlabel>
<font/>
<texturefocus>OSDRecordOffFO.png</texturefocus>
<texturenofocus>OSDRecordOffNF.png</texturenofocus>
<usealttexture>PVR.IsRecordingPlayingChannel | PVR.IsPlayingActiveRecording</usealttexture>
<alttexturefocus>OSDRecordOnFO.png</alttexturefocus>
<alttexturenofocus>OSDRecordOnNF.png</alttexturenofocus>
<onclick>PVR.ToggleRecordPlayingChannel</onclick>
<visible>PVR.CanRecordPlayingChannel</visible>
</control>

View File

@ -110,8 +110,31 @@
<label>$LOCALIZE[31040]</label>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<visible>![MusicPlayer.Content(LiveTV) + [PVR.IsRecordingPlayingChannel | PVR.IsPlayingActiveRecording]]</visible>
<animation effect="slide" start="0,0" end="0,25" time="0" condition="String.IsEmpty(MusicPlayer.Artist) + String.IsEmpty(MusicPlayer.Album)">conditional</animation>
</control>
<control type="image" id="1">
<top>0</top>
<width>50</width>
<height>25</height>
<aspectratio align="center" aligny="center">keep</aspectratio>
<texture>PVR-IsRecording.png</texture>
<visible>MusicPlayer.Content(LiveTV) + [[PVR.IsRecordingPlayingChannel + !Player.ChannelPreviewActive] | PVR.IsPlayingActiveRecording]</visible>
</control>
<control type="label" id="1">
<description>Heading label</description>
<left>50</left>
<top>0</top>
<width>860</width>
<height>25</height>
<align>left</align>
<aligny>center</aligny>
<font>font13</font>
<label>$LOCALIZE[19158]</label>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<visible>MusicPlayer.Content(LiveTV) + [[PVR.IsRecordingPlayingChannel + !Player.ChannelPreviewActive] | PVR.IsPlayingActiveRecording]</visible>
</control>
<control type="label" id="1">
<description>Artist label</description>
<left>20</left>