<Theme Name="MyCustomTheme">
</Theme>
Attribute | Description |
---|---|
Name | The name of the theme. Seen in the drop-down list on the view presenter and used when specifying theme on view level. |
BaseDirectory | Base directory for the assets (sprites, fonts, etc) referenced within the theme file. E.g. if BaseDirectory is set to "Assets/MarkLight/Themes/Flat/" a path within the theme can be specified as "Sprites/CheckBox.psd" which will be translated to "Assets/MarkLight/Themes/Flat/Sprites/CheckBox.psd". |
UnitSize | Unit size is a user-defined element size unit that can be set and used within the theme by using the postfixes ux, uy and uz. E.g. if UnitSize is set to "40,50,20" you can specify the width of a view as "1ux" and it will be translated to 40 pixels, 1uy = 50 pixels and 1uz = 20 pixels. |
<Theme Name="MyCustomTheme">
<Button BackgroundColor="Blue" />
</Theme>
<Theme Name="MyCustomTheme">
<Button BackgroundColor="Blue" />
<Button Style="RedButton" BackgroundColor="Red" />
<Button Id="MyButton1" BackgroundColor="Green" />
</Theme>
<MainMenu>
<Group Spacing="10">
<Button Text="Button1" Width="180" Height="50" />
<Button Style="RedButton" Text="Button2" Width="180" Height="50" />
<Button Style="RedButton" Text="Button3" Width="180" Height="50" />
<Button Id="MyButton1" Text="Button4" Width="180" Height="50" />
</Group>
</Theme>
<Theme Name="MyCustomTheme">
<Label Style="NormalText" FontSize="22" FontColor="#333" Font="MyDefaultFont.ttf" />
<Label Style="SmallText" BasedOn="NormalText" FontSize="16" />
</Theme>
<Theme Name="MyCustomTheme">
<Group Orientation="Horizontal" Spacing="4" />
<List SelectOnMouseUp="True" />
</Theme>
<MainMenu>
<Group Spacing="10">
<Button Theme="Flat" Text="Button1" />
<Button Theme="Neat" Text="Button2" />
<Button Theme="Toon" Text="Button3" />
</Group>
</Theme>
<MyCustomView>
<Label Style="*" Text="Label Text" />
</MyCustomView>
<AnotherView>
<MyCustomView Style="SomeStyle" />
</AnotherView>
Be notified when new themes, views, tutorials and updates are available