Hi,
Now I want to include three themes on my watch face, each with a distinct set of colors. I want to allow users to switch between these themes via the watch settings.
My layout.xml
includes for example a label configured like this:
<label id="HoursLabel" x="35" y="95" font="@Fonts.MyFont" justification="Graphics.TEXT_JUSTIFY_CENTER" color="Graphics.COLOR_YELLOW"/>
In properties.xml
:
<properties> <property id="Theme" type="number">1</property> </properties>
In
settings.xml:
<setting propertyKey="@Properties.Theme" title="@Strings.ThemeTitle">
<settingConfig type="list">
<listEntry value="1">@Strings.Theme1</listEntry>
<listEntry value="2">@Strings.Theme2</listEntry>
<listEntry value="3">@Strings.Theme3</listEntry>
</settingConfig>
</setting>
How can I make the layout elements apply different color configurations based on the selected theme? How should I configure the properties and settings to achieve this? I’ve read the array properties section, but it's not entirely clear, and the sample code there has some runtime errors.
Thanks for your help!