diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-04-20 14:08:49 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-04-20 14:08:49 +0200 |
| commit | 7995e83b47cd75895fbf597f6f277ab2007ca905 (patch) | |
| tree | 124bdcb55cec40497a158383560b0e951c759d8b /Tests/Theme/bluez | |
| parent | 34c32191fc76ab5834207e72fd17cdc478a2d935 (diff) | |
tests with themes, bluez controlsThemes
Diffstat (limited to 'Tests/Theme/bluez')
| -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 |
4 files changed, 60 insertions, 0 deletions
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 |