Font colors via $VAR[]'s
#46
(2015-08-02, 16:37)mkortstiege Wrote: Merged. Would be awesome if you could give tomorrows nightly another try and report back if all those label2 and textcolor issues are addressed.

All working perfectly fine now. Thanks for fixing this!
Reply
#47
(2014-08-31, 23:50)Hitcher Wrote: Would be even simpler if we could use Control.HasFocus() without the id and XBMC used the current control's ID as fallback. Wink 
 Sorry to dig up such an old thread.

Has this every been implemented or is Control.HasFocus() still only usable with an actual ID?
OSMC Skinner      |    The OSMC Skin for Kodi v20 Nexus (native 16:9, 21:9 and 4:3 skin, special cinemascope/CIH version available)      |     GitHub: https://github.com/Ch1llb0/skin.osmc
Reply
#48
Is it possible to use my own $VAR color for image in variables.xml?
Reply
#49
(2021-01-04, 00:40)Atamans Wrote: Is it possible to use my own $VAR color for image in variables.xml?

You can use $VARs for colors, but I think it's best practice/necessary to keep colors in the colors.xml file. The $VARs work exactly the same as anywhere else though.

xml:

<variable name="DarkColor">
   <value>ff0e0e0e</value>
</variable>
<variable name="LightColor">
   <value>ffebedee</value>
</variable>

<variable name="PrimaryColor">
   <value condition="Skin.String(Theme,Light)">$VAR[DarkColor]</value>
   <value>$VAR[LightColor]</value>
</variable>
Reply
#50
I asked the question wrong i meant user color settings, got effect but now i need to adjust epg (rebuild .ini file) for category needs
and here's a question about color and category listing without adding them to string.po
something like that (get category label and set color)

I have built something like this and it works, but that's not what I expect ...

Variables:

Code:
<variable name="PVRGenreMovie1Var">
        <value condition="String.Contains(ListItem.Genre,$LOCALIZE[010200001])">overlays/pvr/genres/144-fo.png</value>
        <!-- Comedy,Comedy-Drama,Romantic Comedy,Family Comedy,Comedy Horror -->
    </variable>

.......................

<variable name="PVRGenreMovieoneVar"> <!-- Movie -->
        <value condition="!String.IsEmpty(Skin.String(PVRGenreMovieoneVar)) + !String.IsEqual(Skin.String(PVRGenreMovieoneVar),None)">$INFO[Skin.String(PVRGenreMovieoneVar)]</value>
        <value>A6479030</value>
    </variable>


My custom dialog:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Foundation -->
<window type="dialog" id="1170">
    <defaultcontrol always="true">9000</defaultcontrol>
    <controls>
        <control type="group">
            <control type="image">
                <centerleft>50%</centerleft>
                <top>70</top>
                <width>1000</width>
                <height>590</height>
                <texture colordiffuse="$VAR[ThemePanelBgColor]" border="40">dialogs/default/bg.png</texture>
            </control>
            <control type="image">
                <centerleft>50%</centerleft>
                <top>137</top>
                <width>960</width>
                <height>2.4</height>
                <texture colordiffuse="$VAR[ThemePanelColor]" border="1">new_pvr/osd_line_white.png</texture>
            </control>
            <control type="label">
                <top>-177</top>
                <centerleft>87%</centerleft>
                <width>1780</width>
                <height>580</height>
                <label>$LOCALIZE[32007]</label>
            </control>
            <control type="grouplist" id="9000">
                <onright>61</onright>
                <description>Control Area</description>
                <top>150</top>
                <left>470</left>
                <width>1780</width>
                <height>500</height>
                <itemgap>0</itemgap>
                <pagecontrol>61</pagecontrol>
                <orientation>vertical</orientation>
                <usecontrolcoords>true</usecontrolcoords>
                <control type="radiobutton" id="9001">
                    <label>»» $LOCALIZE[32008]</label>
                    <onclick>RunScript(script.skin.helper.colorpicker,skinstring=PVRGenreMovieoneVar)</onclick>
                    <include content="CustomColorRadioButtonMy">
                        <param name="ColorStringVar">$VAR[PVRGenreMovieoneVar]</param>
                    </include>
                </control>


Includes_PVR

Code:
<control type="image" id="1">
                        <width>120</width>
                        <height>72</height>
                        <aspectratio>stretch</aspectratio>
                        <texture fallback="new_pvr/epg-genres/224.png" border="5">$INFO[ListItem.Property(GenreType),new_pvr/epg-genres/,.png]</texture>
                        <visible>Skin.HasSetting(Enable.PVRGenreColors) + !Skin.HasSetting(Enable.PVRColorDefault)</visible>
                    </control>

<control type="image" id="2">
                        <width>120</width>
                        <height>72</height>
                        <aspectratio>stretch</aspectratio>
                        <texture colordiffuse="$VAR[PVRGenreMovieoneVar]" border="2.5">$VAR[PVRGenreMovie1Var]</texture>
                        <visible>!Skin.HasSetting(Enable.PVRGenreColors) + !Skin.HasSetting(Enable.PVRColorDefault)</visible>
                    </control>

<control type="image" id="2">
                        <width>120</width>
                        <height>72</height>
                        <aspectratio>stretch</aspectratio>
                        <texture fallback="new_pvr/epg-genres/224.png" border="2.5">new_pvr/epg-genres/224.png</texture>
                        <visible>Skin.HasSetting(Enable.PVRColorDefault)</visible>
                    </control>

I would like to open a window and have all epg grid categories in it, click on them and adjust the colors

Possible?
Reply

Logout Mark Read Team Forum Stats Members Help
Font colors via $VAR[]'s0