aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Console/Themes
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-02-27 18:25:51 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-02-27 18:25:51 +0200
commit03970962af1bfbfc5c13109c3f0a465cf9a1dc29 (patch)
tree94d97e7aff1e6c0e95495636540c7fa99f5ef16d /Software/Visual_Studio/Tango.Console/Themes
parentcd974051e442dd0420eb14513a57855e69beef86 (diff)
downloadTango-03970962af1bfbfc5c13109c3f0a465cf9a1dc29.tar.gz
Tango-03970962af1bfbfc5c13109c3f0a465cf9a1dc29.zip
Create FSE module project template.
Implemented core PPC console components. Added FSE PPC Console module.
Diffstat (limited to 'Software/Visual_Studio/Tango.Console/Themes')
-rw-r--r--Software/Visual_Studio/Tango.Console/Themes/Generic.xaml73
1 files changed, 73 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml b/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml
new file mode 100644
index 000000000..85ba88c33
--- /dev/null
+++ b/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml
@@ -0,0 +1,73 @@
+<ResourceDictionary
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="clr-namespace:Tango.Console">
+
+
+ <SolidColorBrush x:Key="TextBox.Static.Border" Color="#FFABAdB3"/>
+ <SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA"/>
+ <SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5"/>
+ <Style TargetType="{x:Type local:ConsoleTextBox}">
+ <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
+ <Setter Property="BorderBrush" Value="{StaticResource TextBox.Static.Border}"/>
+ <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
+ <Setter Property="BorderThickness" Value="1"/>
+ <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
+ <Setter Property="HorizontalContentAlignment" Value="Left"/>
+ <Setter Property="CaretBrush" Value="{x:Null}"></Setter>
+ <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
+ <Setter Property="AllowDrop" Value="true"/>
+ <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
+ <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
+ <Setter Property="CaretBottomBrush" Value="White"></Setter>
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="{x:Type local:ConsoleTextBox}">
+ <Grid>
+ <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
+ <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
+ </Border>
+ <Canvas>
+ <Border x:Name="PART_Caret" Visibility="Collapsed" IsHitTestVisible="False" Canvas.Left="0" Canvas.Bottom="0" Width="8" Height="4" Background="{TemplateBinding CaretBottomBrush}">
+ <Border.Triggers>
+ <EventTrigger RoutedEvent="Border.Loaded">
+ <BeginStoryboard>
+ <Storyboard x:Name="CaretStoryBoard" RepeatBehavior="Forever">
+ <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Duration="0:0:0:1" FillBehavior="HoldEnd">
+ <DoubleAnimationUsingKeyFrames.KeyFrames>
+ <DiscreteDoubleKeyFrame KeyTime="0:0:0.500" Value="0" />
+ <DiscreteDoubleKeyFrame KeyTime="0:0:0.000" Value="1"/>
+ </DoubleAnimationUsingKeyFrames.KeyFrames>
+ </DoubleAnimationUsingKeyFrames>
+ </Storyboard>
+ </BeginStoryboard>
+ </EventTrigger>
+ </Border.Triggers>
+ </Border>
+ </Canvas>
+ </Grid>
+ <ControlTemplate.Triggers>
+ <Trigger Property="IsEnabled" Value="false">
+ <Setter Property="Opacity" TargetName="border" Value="0.56"/>
+ </Trigger>
+ <Trigger Property="IsMouseOver" Value="true">
+ <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TextBox.MouseOver.Border}"/>
+ </Trigger>
+ <Trigger Property="IsKeyboardFocused" Value="true">
+ <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TextBox.Focus.Border}"/>
+ </Trigger>
+ </ControlTemplate.Triggers>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ <Style.Triggers>
+ <MultiTrigger>
+ <MultiTrigger.Conditions>
+ <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true"/>
+ <Condition Property="IsSelectionActive" Value="false"/>
+ </MultiTrigger.Conditions>
+ <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
+ </MultiTrigger>
+ </Style.Triggers>
+ </Style>
+</ResourceDictionary>