Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
more style consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-Codes committed Sep 2, 2023
1 parent 02424aa commit d7b071a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Controls/NumberBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 +92,23 @@
Grid.Column="3"
Width="26"
Margin="0"
Padding="1,0"
Padding="1"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
Click="OnDownClick"
Content="-"
Foreground="{DynamicResource TrimBrush}"
Style="{DynamicResource XivToolsRepeatButton}" />

<RepeatButton
x:Name="UpButton"
Grid.Column="4"
Width="26"
Margin="0"
Padding="1,0"
Padding="1"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
Click="OnUpClick"
Content="+"
Foreground="{DynamicResource TrimBrush}"
Style="{DynamicResource XivToolsRepeatButton}" />
</Grid>

Expand Down
3 changes: 2 additions & 1 deletion Styles/BorderStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<Setter Property="BorderThickness" Value="1" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="BorderBrush" Value="#11000000" />
<Setter Property="CornerRadius" Value="6" />
<Setter Property="CornerRadius" Value="4" />
<Setter Property="ClipToBounds" Value="True" />
<Setter Property="Margin" Value="2" />
</Style>

<Style
Expand Down
6 changes: 5 additions & 1 deletion Styles/ComboBoxStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@

<ToggleButton
Name="toggleButton"
Height="{TemplateBinding Height}"
Margin="0"
Padding="{TemplateBinding Padding}"
HorizontalContentAlignment="Stretch"
Background="{TemplateBinding Background}"
Foreground="{TemplateBinding Foreground}"
Expand Down Expand Up @@ -197,11 +200,12 @@
<Style
x:Key="XivToolsComboBox"
TargetType="{x:Type ComboBox}">
<Setter Property="Height" Value="28" />
<Setter Property="Height" Value="26" />
<Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" />
<Setter Property="Foreground" Value="{DynamicResource ForegroundBrush}" />
<Setter Property="Template" Value="{StaticResource XivToolsWpfComboBoxTemplate}" />
<Setter Property="Padding" Value="3,0" />
<Setter Property="Margin" Value="1" />
<Setter Property="ItemContainerStyle" Value="{StaticResource XivToolsComboBoxItem}" />
</Style>

Expand Down
2 changes: 2 additions & 0 deletions Styles/ListBoxStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<Setter.Value>
<Style TargetType="{x:Type ListBoxItem}">

<Setter Property="Margin" Value="0" />

<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
Expand Down
1 change: 1 addition & 0 deletions Styles/TextBlockStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="10" />
<Setter Property="Opacity" Value="0.5" />
<Setter Property="Foreground" Value="{DynamicResource ForegroundBrush}" />
</Style>

</ResourceDictionary>

0 comments on commit d7b071a

Please sign in to comment.