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