mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
fixing colors of the remove button (dark and light mode)
This commit is contained in:
@@ -12,6 +12,26 @@
|
|||||||
<Page.Resources>
|
<Page.Resources>
|
||||||
<Thickness x:Key="ContentDialogPadding">24,16,0,24</Thickness>
|
<Thickness x:Key="ContentDialogPadding">24,16,0,24</Thickness>
|
||||||
<Thickness x:Key="ContentDialogCommandSpaceMargin">0,24,24,0</Thickness>
|
<Thickness x:Key="ContentDialogCommandSpaceMargin">0,24,24,0</Thickness>
|
||||||
|
<Style x:Key="DeleteButtonStyle" TargetType="Button">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource TertiaryBackgroundBrush}" />
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type Button}">
|
||||||
|
<Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="Transparent" Padding="26,6,26,6">
|
||||||
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||||||
|
</Border>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter TargetName="border" Property="Background" Value="{DynamicResource TitleBarSecondaryForegroundBrush}" />
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsPressed" Value="True">
|
||||||
|
<Setter TargetName="border" Property="Background" Value="{DynamicResource TitleBarSecondaryForegroundBrush}" />
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
<Style x:Key="CancelButtonStyle" TargetType="Button">
|
<Style x:Key="CancelButtonStyle" TargetType="Button">
|
||||||
<Setter Property="Background" Value="#9d0808" />
|
<Setter Property="Background" Value="#9d0808" />
|
||||||
<Setter Property="BorderBrush" Value="#FF262E34"/>
|
<Setter Property="BorderBrush" Value="#FF262E34"/>
|
||||||
@@ -233,18 +253,19 @@
|
|||||||
PlacementTarget="{Binding ElementName=MoreButton}"
|
PlacementTarget="{Binding ElementName=MoreButton}"
|
||||||
Placement="Left">
|
Placement="Left">
|
||||||
<Button
|
<Button
|
||||||
|
Style="{StaticResource DeleteButtonStyle}"
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
||||||
Click="DeleteButtonClicked">
|
Click="DeleteButtonClicked">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
||||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||||
Foreground="{DynamicResource AccentButtonForeground}"
|
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||||
Text="" />
|
Text="" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Margin="10,0,0,0"
|
Margin="10,0,0,0"
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
||||||
Foreground="{DynamicResource AccentButtonForeground}"
|
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||||
Text="{x:Static props:Resources.Delete}" />
|
Text="{x:Static props:Resources.Delete}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user