diff options
Diffstat (limited to 'Tests/Theme')
| -rw-r--r-- | Tests/Theme/Blues.style | 39 | ||||
| -rwxr-xr-x | Tests/Theme/bluez/CheckBox.template | 10 | ||||
| -rwxr-xr-x | Tests/Theme/bluez/ComboBox.template | 24 | ||||
| -rwxr-xr-x | Tests/Theme/bluez/RadioButton.template | 10 | ||||
| -rwxr-xr-x | Tests/Theme/bluez/Spinner.template | 16 |
5 files changed, 99 insertions, 0 deletions
diff --git a/Tests/Theme/Blues.style b/Tests/Theme/Blues.style new file mode 100644 index 00000000..81dc99f2 --- /dev/null +++ b/Tests/Theme/Blues.style @@ -0,0 +1,39 @@ +Icon { + Margin=1; + Width=14; + Height=14; +} +Border { + Foreground = Gray; +} +GroupBox { + Foreground = Gray; +} +CheckBox { + //Template = #Crow.Bluez.CheckBox.template; + Caption = Check Box; + CornerRadius = 5; + Width=Fit; + Background = vgradient|0:DimGray|1:Onyx; +} +RadioButton { + //Template = #Crow.Templates.bluez.RadioButton.template; + Caption = Radio But; + CornerRadius = 5; + Width=Fit; + Background = vgradient|0:DimGray|1:Onyx; +} +ComboBox { + //Template = #Crow.Templates.bluez.ComboBox.template; + CornerRadius = 5; + Width=Fit; + Background = vgradient|0:DimGray|1:Onyx; +} +Spinner { + //Template = #Crow.Templates.bluez.Spinner.template; + CornerRadius = 5; + Foreground = White; + Width=70; + Height=Fit; + Background = vgradient|0:DimGray|1:Onyx; +}
\ No newline at end of file diff --git a/Tests/Theme/bluez/CheckBox.template b/Tests/Theme/bluez/CheckBox.template new file mode 100755 index 00000000..5569c81b --- /dev/null +++ b/Tests/Theme/bluez/CheckBox.template @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<Border Foreground="Gray" CornerRadius="{./CornerRadius}" BorderWidth="1" Background="{./Background}" + MouseEnter="{Foreground=BlueCrayola}" + MouseLeave="{Foreground=Gray}"> + <HorizontalStack Margin="1"> + <Image Style="Icon" Path="#Crow.Images.Icons.checkbox.svg" + SvgSub="{./IsChecked}"/> + <Label Font="{./Font}" Text="{./Caption}" Foreground="{./Foreground}" Margin="2"/> + </HorizontalStack> +</Border>
\ No newline at end of file diff --git a/Tests/Theme/bluez/ComboBox.template b/Tests/Theme/bluez/ComboBox.template new file mode 100755 index 00000000..d8f3e335 --- /dev/null +++ b/Tests/Theme/bluez/ComboBox.template @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<Popper Name="popper" PopDirection="Bottom"> + <Template> + <Border Foreground="Gray" CornerRadius="{../../CornerRadius}" BorderWidth="1" + MouseEnter="{Foreground=BlueCrayola}" + MouseLeave="{Foreground=Gray}"> + <HorizontalStack Background="{../../../Background}" Margin="1"> + <Label Font="{./Font}" MinimumSize="80,10" Margin="2" Foreground="White" Text="{../../../../SelectedItem}"/> + <Image Style="Icon" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> + </HorizontalStack> + </Border> + </Template> + <Border BorderWidth="1" Margin="1" Background="Jet" + MinimumSize="{../../MinimumPopupSize}" Fit="true"> + <Scroller Name="scroller1" Margin="2" VerticalScrolling="true" + MaximumSize="0,200" + HorizontalAlignment="Left"> + <VerticalStack + Height="Fit" Name="ItemsContainer" Margin="0" + HorizontalAlignment="Left" + VerticalAlignment="Top"/> + </Scroller> + </Border> +</Popper> diff --git a/Tests/Theme/bluez/RadioButton.template b/Tests/Theme/bluez/RadioButton.template new file mode 100755 index 00000000..f7988b7f --- /dev/null +++ b/Tests/Theme/bluez/RadioButton.template @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<Border Foreground="Gray" CornerRadius="{./CornerRadius}" BorderWidth="1" + MouseEnter="{Foreground=BlueCrayola}" + MouseLeave="{Foreground=Gray}"> + <HorizontalStack Background="{./Background}" Margin="1"> + <Image Style="Icon" Path="#Crow.Images.Icons.radiobutton.svg" + SvgSub="{./IsChecked}"/> + <Label Font="{./Font}" Text="{./Caption}" Foreground="{./Foreground}" Margin="2"/> + </HorizontalStack> +</Border>
\ No newline at end of file diff --git a/Tests/Theme/bluez/Spinner.template b/Tests/Theme/bluez/Spinner.template new file mode 100755 index 00000000..401bad69 --- /dev/null +++ b/Tests/Theme/bluez/Spinner.template @@ -0,0 +1,16 @@ +<Border Foreground="Gray" CornerRadius="{./CornerRadius}" BorderWidth="1" Background="{./Background}" + MouseEnter="{Foreground=BlueCrayola}" + MouseLeave="{Foreground=Gray}"> + <HorizontalStack Margin="1" Spacing="1"> + <Button MouseRepeat="true" Height="Stretched" Width="14" Margin="1" MouseClick="./onDown"> + <Image Path="#Crow.Images.Icons.arrows.svg" SvgSub="left" Margin="1"/> + </Button> + <GraphicObject Width="1" Height="70%" Background="Gray"/> + <Label Foreground="{./Foreground}" Font="{./Font}" Width="Stretched" + Text="{./Value}" TextAlignment="Center" Margin="2"/> + <GraphicObject Width="1" Height="70%" Background="Gray"/> + <Button MouseRepeat="true" Height="Stretched" Width="14" Margin="1" MouseClick="./onUp"> + <Image Path="#Crow.Images.Icons.arrows.svg" SvgSub="right" Margin="1"/> + </Button> + </HorizontalStack> +</Border>
\ No newline at end of file |