Browse Source

Change selection color to gray

Equbuxu 3 years ago
parent
commit
d424198aba

+ 2 - 1
PixiEditor/Styles/ThemeColors.xaml

@@ -7,4 +7,5 @@
     <SolidColorBrush x:Key="DarkerAccentColor" Color="#202020" />
     <SolidColorBrush x:Key="DarkerAccentColor" Color="#202020" />
     <SolidColorBrush x:Key="BrighterAccentColor" Color="#3F3F46" />
     <SolidColorBrush x:Key="BrighterAccentColor" Color="#3F3F46" />
     <SolidColorBrush x:Key="AlmostLightModeAccentColor" Color="#4F4F4F" />
     <SolidColorBrush x:Key="AlmostLightModeAccentColor" Color="#4F4F4F" />
-</ResourceDictionary>
+    <SolidColorBrush x:Key="SelectionColor" Color="#999" />
+</ResourceDictionary>

+ 2 - 1
PixiEditor/Styles/ThemeStyle.xaml

@@ -143,6 +143,7 @@
     <Style TargetType="TextBox" x:Key="DarkTextBoxStyle">
     <Style TargetType="TextBox" x:Key="DarkTextBoxStyle">
         <Setter Property="BorderThickness" Value="1" />
         <Setter Property="BorderThickness" Value="1" />
         <Setter Property="Foreground" Value="Snow" />
         <Setter Property="Foreground" Value="Snow" />
+        <Setter Property="SelectionBrush" Value="{StaticResource SelectionColor}" />
 
 
         <Setter Property="Template">
         <Setter Property="Template">
             <Setter.Value>
             <Setter.Value>
@@ -261,4 +262,4 @@
             </Setter.Value>
             </Setter.Value>
         </Setter>
         </Setter>
     </Style>
     </Style>
-</ResourceDictionary>
+</ResourceDictionary>

+ 1 - 0
PixiEditor/Views/UserControls/SizeInput.xaml

@@ -36,6 +36,7 @@
             </Grid.ColumnDefinitions>
             </Grid.ColumnDefinitions>
             <TextBox IsEnabled="{Binding IsEnabled, ElementName=uc}" HorizontalContentAlignment="Right"
             <TextBox IsEnabled="{Binding IsEnabled, ElementName=uc}" HorizontalContentAlignment="Right"
                      InputScope="Number" BorderThickness="0" Background="Transparent"
                      InputScope="Number" BorderThickness="0" Background="Transparent"
+                     SelectionBrush="{StaticResource SelectionColor}"
                      Foreground="{Binding Foreground, ElementName=uc}" Focusable="True" CaretBrush="{Binding Foreground, ElementName=uc}"
                      Foreground="{Binding Foreground, ElementName=uc}" Focusable="True" CaretBrush="{Binding Foreground, ElementName=uc}"
                      Margin="0,0,5,0" VerticalAlignment="Center"
                      Margin="0,0,5,0" VerticalAlignment="Center"
                      x:Name="textBox"
                      x:Name="textBox"