mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
style: re-design style for disabled primary button
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
e5dc211c35
commit
05982e6dc0
1 changed files with 9 additions and 6 deletions
|
@ -499,6 +499,12 @@
|
||||||
<Style Selector="Button.flat:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
<Style Selector="Button.flat:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
<Style Selector="Button.flat:disabled">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource Brush.FlatButton.Background}"/>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="Button.flat:disabled /template/ ContentPresenter#PART_ContentPresenter">
|
||||||
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
|
</Style>
|
||||||
<Style Selector="Button.flat.primary">
|
<Style Selector="Button.flat.primary">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrush}"/>
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrush}"/>
|
||||||
<Setter Property="Background" Value="{DynamicResource AccentButtonBackground}"/>
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackground}"/>
|
||||||
|
@ -509,18 +515,15 @@
|
||||||
<Style Selector="Button.flat.primary:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
<Style Selector="Button.flat.primary:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
<Style Selector="Button.flat.primary:disabled">
|
||||||
|
<Setter Property="Opacity" Value=".65"/>
|
||||||
|
</Style>
|
||||||
<Style Selector="Button.flat.primary TextBlock">
|
<Style Selector="Button.flat.primary TextBlock">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource AccentButtonForeground}"/>
|
<Setter Property="Foreground" Value="{DynamicResource AccentButtonForeground}"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="Button.flat.primary ToolTip TextBlock">
|
<Style Selector="Button.flat.primary ToolTip TextBlock">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="Button.flat:disabled /template/ ContentPresenter#PART_ContentPresenter">
|
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
|
||||||
</Style>
|
|
||||||
<Style Selector="Button.flat:disabled">
|
|
||||||
<Setter Property="Background" Value="{DynamicResource Brush.FlatButton.Background}"/>
|
|
||||||
</Style>
|
|
||||||
|
|
||||||
<Style Selector="SplitButton">
|
<Style Selector="SplitButton">
|
||||||
<Setter Property="MinHeight" Value="24"/>
|
<Setter Property="MinHeight" Value="24"/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue