aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2024-11-14 14:30:42 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2024-11-14 14:30:42 +0200
commit7d9ab3b87aed944167d77244b00fbdd4224725e2 (patch)
tree9a2a56059a0332182a7ecf4aa4237eae132f97f7 /Software/Visual_Studio/Tango.Touch
parentc19568d8dc2677fe8dd57d55a737535c718f52f5 (diff)
downloadTango-7d9ab3b87aed944167d77244b00fbdd4224725e2.tar.gz
Tango-7d9ab3b87aed944167d77244b00fbdd4224725e2.zip
Added support for SMS notifications on TS & X4.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchToggleSlider.xaml23
1 files changed, 22 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchToggleSlider.xaml b/Software/Visual_Studio/Tango.Touch/Controls/TouchToggleSlider.xaml
index 66328ea2d..81b4a3351 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchToggleSlider.xaml
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchToggleSlider.xaml
@@ -85,7 +85,28 @@
</Setter>
</Style>
- <Style x:Key="TouchToggleButtonCheck" TargetType="{x:Type local:TouchToggleSlider}" BasedOn="{StaticResource {x:Type local:TouchToggleSlider}}">
+ <Style x:Key="TouchToggleDisabledGray" TargetType="{x:Type local:TouchToggleSlider}" BasedOn="{StaticResource {x:Type local:TouchToggleSlider}}">
+ <Style.Triggers>
+ <Trigger Property="IsChecked" Value="True">
+ <Setter Property="BorderBrush" Value="{StaticResource TangoPrimaryAccentBrush}" />
+ <Setter Property="ThumbBrush" Value="{StaticResource TangoPrimaryAccentBrush}" />
+ </Trigger>
+ <Trigger Property="IsChecked" Value="False">
+ <Setter Property="BorderBrush" Value="{StaticResource TangoGrayBrush}" />
+ <Setter Property="ThumbBrush" Value="{StaticResource TangoGrayBrush}" />
+ </Trigger>
+ <Trigger Property="IsEnabled" Value="True">
+ <Setter Property="BorderBrush" Value="{StaticResource TangoPrimaryAccentBrush}" />
+ <Setter Property="ThumbBrush" Value="{StaticResource TangoPrimaryAccentBrush}" />
+ </Trigger>
+ <Trigger Property="IsEnabled" Value="False">
+ <Setter Property="BorderBrush" Value="{StaticResource TangoGrayBrush}" />
+ <Setter Property="ThumbBrush" Value="{StaticResource TangoGrayBrush}" />
+ </Trigger>
+ </Style.Triggers>
+ </Style>
+
+ <Style x:Key="TouchToggleButtonCheck" TargetType="{x:Type local:TouchToggleSlider}" BasedOn="{StaticResource {x:Type local:TouchToggleSlider}}">
<Setter Property="BorderThickness" Value="0"></Setter>
<Setter Property="UncheckedBackground" Value="{StaticResource TangoGrayBrush}"></Setter>
<Setter Property="CheckedBackground" Value="{StaticResource TangoGreenBrush}"></Setter>