And again.... A bit help needed with skinfiles for Worldweather (1 Viewer)

powermarcel10

Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    35
    Groningen
    Home Country
    Netherlands Netherlands
    Hi peeps,

    as it is taking such a long time now for team Titan to introduce skinfiles for Worldweather, I will continue working to my own files @ here.

    One thing I can't get done, is changing the textcolor in a groupelement. In the example bellow I want to make the labels just white, but they still looking 'grey' or something similair.. (as they have no focus or something like that)

    Adding <textcolor>FFFFFFFF</textcolor> to the controls doesn't make any difference.. Only when I add those items that are stored in a groupelement in a seperate control, it's white as it should be.

    I thought that the fontcolor for a groupelement was stored in references.xml, but I can't find it.

    This is the control (stored in WorldWeatherNormalCondition.xml) wich is markes red in the image bellow:

    <control>
    <type>group</type>
    <description>group element</description>
    <layout>StackLayout(5, Vertical, true)</layout>
    <posX>1130</posX>
    <posY>330</posY>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    <control>
    <description>Current Precipitation label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.TodayPrecipitation</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)+!string.equals(#WorldWeather.TodayPrecipitation, )</visible>
    </control>
    <control>
    <description>current visibility label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.TodayVisibility</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)+!string.equals(#WorldWeather.TodayVisibility, )</visible>
    </control>
    <control>
    <description>current cloud coverage label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.TodayCloudCoverage</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)+!string.equals(#WorldWeather.TodayCloudCoverage, )</visible>
    </control>
    <control>
    <description>current wind label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.TodayWindDirection - #WorldWeather.TodayWindSpeed</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <width>467</width>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)+string.equals(#WorldWeather.TodayWindDirectionDegree, )</visible>
    </control>
    <control>
    <description>current wind label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.TodayWindDirection (#WorldWeather.TodayWindDirectionDegree) - #WorldWeather.TodayWindSpeed</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)+!string.equals(#WorldWeather.TodayWindDirectionDegree, )</visible>
    </control>
    <control>
    <description>current humidity label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.TodayHumidity</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)</visible>
    </control>
    <control>
    <description>current pressure label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.TodayPressure #WorldWeather.TodayBarometricPressure</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)+!string.equals(#WorldWeather.TodayPressure, )</visible>
    </control>
    <control>
    <description>current dewpoint label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.TodayDewPoint</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)+!string.equals(#WorldWeather.TodayDewPoint, )</visible>
    </control>
    <control>
    <description>Current sunrise label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.LocationSunriseTime</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)</visible>
    </control>
    <control>
    <description>Current sunset label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.LocationSunsetTime</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)</visible>
    </control>
    <control>
    <description>current moonphase label</description>
    <type>label</type>
    <id>0</id>
    <label>#WorldWeather.LocationMoonPhase</label>
    <font>font11</font>
    <height>22</height>
    <align>Right</align>
    <width>500</width>
    <textcolor>FFFFFFFF</textcolor>
    <visible>string.equals(#WorldWeather.View,Condition)+string.equals(#WorldWeather.ConditionView,Normal)</visible>
    </control>
    </control>
     

    Attachments

    • Naamloos.jpg
      Naamloos.jpg
      515.3 KB
    Last edited:

    powermarcel10

    Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    35
    Groningen
    Home Country
    Netherlands Netherlands
    And we have a winner!! Hero of the day is @Zoidberg77! Thanks man, It's working..

    I had played with that one before, but I added them to all individual controls. Now I added it to the control start only looking this:

    <control>
    <type>group</type>
    <description>group element</description>
    <layout>StackLayout(5, Vertical, true)</layout>
    <posX>640</posX>
    <posY>250</posY>
    <align>Left</align>
    <dimColor>ffffffff</dimColor>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>

    And now it's exactly how it should look like..

    Thanks! :)
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    <textcolorNoFocus>ffffffff</textcolorNoFocus>
     

    Users who are viewing this thread

    Top Bottom