mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
save-cancel buttons style
This commit is contained in:
@@ -245,49 +245,21 @@
|
|||||||
x:Name="CancelButton"
|
x:Name="CancelButton"
|
||||||
Margin="20,0,0,0"
|
Margin="20,0,0,0"
|
||||||
Height="36"
|
Height="36"
|
||||||
|
Padding="24,0,24,0"
|
||||||
|
Content="{x:Static props:Resources.Cancel}"
|
||||||
Background="{DynamicResource SecondaryBackgroundBrush}"
|
Background="{DynamicResource SecondaryBackgroundBrush}"
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Cancel}"
|
AutomationProperties.Name="{x:Static props:Resources.Cancel}"
|
||||||
Click="CancelButtonClicked">
|
Click="CancelButtonClicked">
|
||||||
<StackPanel Orientation="Horizontal" Margin="12, 2, 12, 0" >
|
|
||||||
<TextBlock
|
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Cancel}"
|
|
||||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
|
||||||
Text="" />
|
|
||||||
<TextBlock
|
|
||||||
Margin="12,-4,0,0"
|
|
||||||
Text="{x:Static props:Resources.Cancel}" />
|
|
||||||
</StackPanel>
|
|
||||||
<Button.Effect>
|
|
||||||
<DropShadowEffect
|
|
||||||
BlurRadius="6"
|
|
||||||
Opacity="0.32"
|
|
||||||
ShadowDepth="1" />
|
|
||||||
</Button.Effect>
|
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
x:Name="SaveButton"
|
x:Name="SaveButton"
|
||||||
Margin="20,0,0,0"
|
Margin="20,0,0,0"
|
||||||
|
Padding="24,0,24,0"
|
||||||
Height="36"
|
Height="36"
|
||||||
|
Content="{x:Static props:Resources.Save_project}"
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Save_project}"
|
AutomationProperties.Name="{x:Static props:Resources.Save_project}"
|
||||||
Click="SaveButtonClicked"
|
Click="SaveButtonClicked"
|
||||||
Style="{StaticResource AccentButtonStyle}">
|
Style="{StaticResource AccentButtonStyle}">
|
||||||
<StackPanel Orientation="Horizontal" Margin="12, 2, 12, 0" >
|
|
||||||
<TextBlock
|
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Save_project}"
|
|
||||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
|
||||||
Foreground="{DynamicResource AccentButtonForeground}"
|
|
||||||
Text="" />
|
|
||||||
<TextBlock
|
|
||||||
Margin="12,-4,0,0"
|
|
||||||
Foreground="{DynamicResource AccentButtonForeground}"
|
|
||||||
Text="{x:Static props:Resources.Save_project}" />
|
|
||||||
</StackPanel>
|
|
||||||
<Button.Effect>
|
|
||||||
<DropShadowEffect
|
|
||||||
BlurRadius="6"
|
|
||||||
Opacity="0.32"
|
|
||||||
ShadowDepth="1" />
|
|
||||||
</Button.Effect>
|
|
||||||
</Button>
|
</Button>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|||||||
Reference in New Issue
Block a user