misc: add Width & Height to Button in ThemeSelector & TitleBar.
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button
|
||||
Padding="8"
|
||||
Width="32"
|
||||
Height="32"
|
||||
Theme="{DynamicResource BorderlessButton}"
|
||||
Click="OpenRepository">
|
||||
<PathIcon
|
||||
|
||||
@@ -2,14 +2,15 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:u="https://irihi.tech/ursa">
|
||||
<ControlTheme TargetType="u:ThemeToggleButton" x:Key="{x:Type u:ThemeToggleButton}">
|
||||
<Setter Property="Padding" Value="8" />
|
||||
<Setter Property="Width" Value="32" />
|
||||
<Setter Property="Height" Value="32" />
|
||||
<Setter Property="Template">
|
||||
<ControlTemplate TargetType="u:ThemeToggleButton">
|
||||
<Button
|
||||
Padding="8"
|
||||
FontWeight="Regular"
|
||||
Name="{x:Static u:ThemeToggleButton.PART_ThemeButton}"
|
||||
HorizontalAlignment="Center"
|
||||
Theme="{DynamicResource BorderlessButton}">
|
||||
Theme="{DynamicResource BorderlessButton}"
|
||||
Padding="{TemplateBinding Padding}">
|
||||
<PathIcon
|
||||
Name="PART_Icon"
|
||||
Theme="{StaticResource InnerPathIcon}"
|
||||
|
||||
Reference in New Issue
Block a user