Button <texturefocus>: Use color not image
#1
I have a Window with a control (button) How can I put a background colour?

Code:
<?xml version="1.0" encoding="UTF-8"?>
<window id="9999">
  <defaultcontrol always="true">203</defaultcontrol>
  <animation effect="fade" time="500">WindowOpen</animation>
  <animation effect="fade" time="500">WindowClose</animation>
  <coordinates>
    <posx>240</posx>
    <posy>170</posy>
  </coordinates>
  <controls>
    <!-- THE BACKGROUND -->
    <control type="group">
      <control type="image">
        <description>Background</description>
        <posx>0</posx>
        <posy>0</posy>
        <width>800</width>
        <height>400</height>
        <texture>bg_simkl.jpg</texture>
      </control>
      <!-- Remember to pass all the labels to the .po file -->
      <control type="label">
        <description>Header</description>
        <posx>0</posx>
        <posy>30</posy>
        <width>800</width>
        <height>25</height>
        <!-- Structure: $ADDON[script.simkl <STRID>] -->
        <label>SIMKL account authorization</label>
        <align>center</align>
        <aligny>center</aligny>
        <textcolor>FFAAAAAA</textcolor>
      </control>
      <control type="label" id="201">
        <description>PIN</description>
        <posx></posx>
        <posy></posy>
        <width></width>
        <height></height>
        <label> - </label>
        <align>center</align>
        <aligny>center</aligny>
        <textcolor>FFFFFFFF</textcolor>
      </control>
    </control>

    <control type="group">
      <control type="label" id="202">
        <description>Instructions</description>
        <posx>0</posx>
        <posy>350</posy>
        <width>800</width>
        <height>50</height>
        <label> Instructions </label>
        <align>center</align>
        <aligny>center</aligny>
        <textcolor>FFFFFFFF</textcolor>
      </control>
      <control type="button" id="203">
        <description>Cancel</description>
        <align>center</align>
        <posx>325</posx>
        <posy>320</posy>
        <width>150</width>
        <height>30</height>
        <label>Cancel</label>
        <onclick>PreviousMenu</onclick>
        <!-- Not visible if using a remote (press back) -->
        <visible>system.getbool(input.enablemouse)</visible>
        <texturenofocus>ffededed</texturenofocus> <!-- ????? -->
        <texturefocus>ffdd44dd</texturefocus>
      </control>
    </control>
  </controls>
</window>
Reply
#2
not possible, it needs an image.

you could do it like this though:
Code:
<texturenofocus colordiffuse="ffededed">white.png</texturenofocus>
<texturefocus colordiffuse="ffdd44dd">white.png</texturefocus>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
(2016-12-29, 15:54)ronie Wrote: not possible, it needs an image.

you could do it like this though:
Code:
<texturenofocus colordiffuse="ffededed">white.png</texturenofocus>
<texturefocus colordiffuse="ffdd44dd">white.png</texturefocus>

That's what I was using, but I thought it would be a better way to do it. And it's not the "full" colour
Reply

Logout Mark Read Team Forum Stats Members Help
Button <texturefocus>: Use color not image0