mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
ux: new style for NumericUpDown
This commit is contained in:
parent
6974b0e08d
commit
5bb41ed65f
2 changed files with 25 additions and 28 deletions
|
@ -26,6 +26,11 @@
|
||||||
<Setter Property="ExtendClientAreaToDecorationsHint" Value="True"/>
|
<Setter Property="ExtendClientAreaToDecorationsHint" Value="True"/>
|
||||||
<Setter Property="SystemDecorations" Value="Full"/>
|
<Setter Property="SystemDecorations" Value="Full"/>
|
||||||
<Setter Property="Padding" Value="0"/>
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
|
||||||
|
<Style.Resources>
|
||||||
|
<SolidColorBrush x:Key="SystemControlErrorTextForegroundBrush" Color="Red"/>
|
||||||
|
<SolidColorBrush x:Key="SystemErrorTextColor" Color="Red"/>
|
||||||
|
</Style.Resources>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="Window[WindowState=Maximized]">
|
<Style Selector="Window[WindowState=Maximized]">
|
||||||
|
@ -1294,4 +1299,22 @@
|
||||||
<Style Selector="TreeDataGridExpanderCell[IsExpanded=False] Path.folder_icon">
|
<Style Selector="TreeDataGridExpanderCell[IsExpanded=False] Path.folder_icon">
|
||||||
<Setter Property="Data" Value="{StaticResource Icons.Folder.Fill}"/>
|
<Setter Property="Data" Value="{StaticResource Icons.Folder.Fill}"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="NumericUpDown">
|
||||||
|
<Style Selector="^ /template/ ButtonSpinner#PART_Spinner">
|
||||||
|
<Setter Property="MinHeight" Value="0"/>
|
||||||
|
<Setter Property="Height" Value="28"/>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ TextBox#PART_TextBox">
|
||||||
|
<Setter Property="MinHeight" Value="0"/>
|
||||||
|
<Setter Property="Height" Value="28"/>
|
||||||
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:focus-within /template/ ButtonSpinner#PART_Spinner">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ TextBox#PART_TextBox /template/ Border#PART_BorderElement">
|
||||||
|
<Setter Property="IsVisible" Value="False"/>
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
</Styles>
|
</Styles>
|
||||||
|
|
|
@ -200,20 +200,7 @@
|
||||||
Padding="4"
|
Padding="4"
|
||||||
BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}"
|
BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}"
|
||||||
CornerRadius="3"
|
CornerRadius="3"
|
||||||
Value="{Binding DefaultFontSize, Mode=TwoWay}">
|
Value="{Binding DefaultFontSize, Mode=TwoWay}"/>
|
||||||
<NumericUpDown.Styles>
|
|
||||||
<Style Selector="NumericUpDown /template/ ButtonSpinner#PART_Spinner">
|
|
||||||
<Setter Property="MinHeight" Value="0"/>
|
|
||||||
<Setter Property="Height" Value="28"/>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="NumericUpDown /template/ TextBox#PART_TextBox">
|
|
||||||
<Setter Property="MinHeight" Value="0"/>
|
|
||||||
<Setter Property="Height" Value="28"/>
|
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
||||||
<Setter Property="CornerRadius" Value="3,0,0,3"/>
|
|
||||||
</Style>
|
|
||||||
</NumericUpDown.Styles>
|
|
||||||
</NumericUpDown>
|
|
||||||
|
|
||||||
<TextBlock Grid.Row="4" Grid.Column="0"
|
<TextBlock Grid.Row="4" Grid.Column="0"
|
||||||
Text="{DynamicResource Text.Preference.Appearance.ColorOverrides}"
|
Text="{DynamicResource Text.Preference.Appearance.ColorOverrides}"
|
||||||
|
@ -382,20 +369,7 @@
|
||||||
CornerRadius="3"
|
CornerRadius="3"
|
||||||
ParsingNumberStyle="Integer"
|
ParsingNumberStyle="Integer"
|
||||||
FormatString="0"
|
FormatString="0"
|
||||||
Value="{Binding GitAutoFetchInterval, Mode=TwoWay, FallbackValue=10}">
|
Value="{Binding GitAutoFetchInterval, Mode=TwoWay, FallbackValue=10}"/>
|
||||||
<NumericUpDown.Styles>
|
|
||||||
<Style Selector="NumericUpDown /template/ ButtonSpinner#PART_Spinner">
|
|
||||||
<Setter Property="MinHeight" Value="0"/>
|
|
||||||
<Setter Property="Height" Value="28"/>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="NumericUpDown /template/ TextBox#PART_TextBox">
|
|
||||||
<Setter Property="MinHeight" Value="0"/>
|
|
||||||
<Setter Property="Height" Value="28"/>
|
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
||||||
<Setter Property="CornerRadius" Value="3,0,0,3"/>
|
|
||||||
</Style>
|
|
||||||
</NumericUpDown.Styles>
|
|
||||||
</NumericUpDown>
|
|
||||||
|
|
||||||
<TextBlock Grid.Column="1"
|
<TextBlock Grid.Column="1"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
|
|
Loading…
Reference in a new issue