2016-05-05, 17:44
Hi All
Please could someone help me with adding a background to the buttons that I have added to Home.xml
I have added <thumb> like below but it doesn't work.
I would like it that when you focus on the Power button it should also show quit background.
Below is my full code for the Power and Settings buttons.
Hope to hear from anyone.
Many Thanks!
Sanjay
Please could someone help me with adding a background to the buttons that I have added to Home.xml
I have added <thumb> like below but it doesn't work.
Code:
<thumb>special://skin/backgrounds/Quit.jpg</thumb>
I would like it that when you focus on the Power button it should also show quit background.
Below is my full code for the Power and Settings buttons.
Code:
<control type="group" id="10">
<control type="button" id="997">
<description>Power button</description>
<left>55</left>
<bottom>30</bottom>
<width>75</width>
<height>75</height>
<label>31003</label>
<font>-</font>
<onclick>Quit()</onclick>
<texturefocus border="5">floor_buttonFO.png</texturefocus>
<texturenofocus border="5">floor_button.png</texturenofocus>
<onleft>100</onleft>
<onright>998</onright>
<onup>300</onup>
<ondown>100</ondown>
<thumb>special://skin/backgrounds/Quit.jpg</thumb>
</control>
<control type="image">
<description>Power Icon</description>
<left>60</left>
<bottom>35</bottom>
<width>65</width>
<height>65</height>
<aspectratio>keep</aspectratio>
<texture>icon_power.png</texture>
</control>
<control type="label">
<description>Quit Kodi</description>
<left>150</left>
<bottom>-40</bottom>
<width>200</width>
<height>200</height>
<align>left</align>
<font>font10</font>
<label>Quit Kodi</label>
</control>
<control type="button" id="998">
<description>Settings button</description>
<right>75</right>
<bottom>30</bottom>
<width>75</width>
<height>75</height>
<label>31003</label>
<font>-</font>
<onclick>ActivateWindow(Settings)</onclick>
<texturefocus border="5">floor_buttonFO.png</texturefocus>
<texturenofocus border="5">floor_button.png</texturenofocus>
<onleft>997</onleft>
<onright>100</onright>
<onup>300</onup>
<ondown>100</ondown>
<thumb>special://skin/backgrounds/Settings.jpg</thumb>
</control>
<control type="image">
<description>Settings Icon</description>
<right>80</right>
<bottom>35</bottom>
<width>65</width>
<height>65</height>
<aspectratio>keep</aspectratio>
<texture>icon_system.png</texture>
</control>
<control type="label">
<description>Settings</description>
<right>70</right>
<bottom>-40</bottom>
<width>200</width>
<height>200</height>
<align>left</align>
<font>font10</font>
<label>Settings</label>
</control>
</control>
Hope to hear from anyone.
Many Thanks!
Sanjay