Merge pull request #658 from irihitech/various
remove scale transform in Button & simplify OnPlatform use case
This commit is contained in:
@@ -15,8 +15,8 @@
|
|||||||
x:DataType="viewModels:MainWindowViewModel"
|
x:DataType="viewModels:MainWindowViewModel"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
Icon="/Assets/Ursa.ico"
|
Icon="/Assets/Ursa.ico"
|
||||||
IsFullScreenButtonVisible="{OnPlatform True, macOS=False}"
|
IsFullScreenButtonVisible="{OnPlatform {x:True}, macOS={x:False}}"
|
||||||
IsManagedResizerVisible="{OnPlatform False, Linux=True}"
|
IsManagedResizerVisible="{OnPlatform {x:False}, Linux={x:True}}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<u:UrsaWindow.RightContent>
|
<u:UrsaWindow.RightContent>
|
||||||
<views:TitleBarRightContent />
|
<views:TitleBarRightContent />
|
||||||
|
|||||||
@@ -86,10 +86,6 @@
|
|||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|
||||||
<Style Selector="^:pressed">
|
|
||||||
<Setter Property="RenderTransform" Value="scale(0.98)" />
|
|
||||||
</Style>
|
|
||||||
|
|
||||||
<Style Selector="^.Primary">
|
<Style Selector="^.Primary">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultPrimaryForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultPrimaryForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|||||||
@@ -23,9 +23,6 @@
|
|||||||
</Border>
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
<Style Selector="^:pressed">
|
|
||||||
<Setter Property="RenderTransform" Value="scale(0.98)" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:pointerover /template/ Border#PART_Background">
|
<Style Selector="^:pointerover /template/ Border#PART_Background">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ButtonDefaultPointeroverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource ButtonDefaultPointeroverBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ButtonDefaultPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource ButtonDefaultPointeroverBackground}" />
|
||||||
@@ -66,9 +63,6 @@
|
|||||||
</Border>
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
<Style Selector="^:pressed">
|
|
||||||
<Setter Property="RenderTransform" Value="scale(0.98)" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="^:pointerover /template/ Border#PART_Background">
|
<Style Selector="^:pointerover /template/ Border#PART_Background">
|
||||||
<Setter Property="Background" Value="{DynamicResource ButtonSolidPrimaryPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource ButtonSolidPrimaryPointeroverBackground}" />
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ButtonSolidPrimaryPointeroverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource ButtonSolidPrimaryPointeroverBorderBrush}" />
|
||||||
|
|||||||
@@ -11,39 +11,12 @@
|
|||||||
<Setter Property="ExtendClientAreaTitleBarHeightHint" Value="-1" />
|
<Setter Property="ExtendClientAreaTitleBarHeightHint" Value="-1" />
|
||||||
<Setter Property="ExtendClientAreaToDecorationsHint" Value="True" />
|
<Setter Property="ExtendClientAreaToDecorationsHint" Value="True" />
|
||||||
<Setter Property="u:OverlayDialogHost.IsModalStatusScope" Value="True" />
|
<Setter Property="u:OverlayDialogHost.IsModalStatusScope" Value="True" />
|
||||||
<Setter Property="IsMinimizeButtonVisible">
|
<Setter Property="IsMinimizeButtonVisible" Value="{OnPlatform {x:True},macOS={x:False}}" />
|
||||||
<OnPlatform>
|
<Setter Property="IsRestoreButtonVisible" Value="{OnPlatform {x:True},macOS={x:False}}" />
|
||||||
<On Options="Default, Windows, Linux">
|
<Setter Property="IsCloseButtonVisible" Value="{OnPlatform {x:True},macOS={x:False}}"/>
|
||||||
<x:Boolean>True</x:Boolean>
|
|
||||||
</On>
|
|
||||||
<On Options="macOS">
|
|
||||||
<x:Boolean>False</x:Boolean>
|
|
||||||
</On>
|
|
||||||
</OnPlatform>
|
|
||||||
</Setter>
|
|
||||||
<Setter Property="IsRestoreButtonVisible">
|
|
||||||
<OnPlatform>
|
|
||||||
<On Options="Default, Windows, Linux">
|
|
||||||
<x:Boolean>True</x:Boolean>
|
|
||||||
</On>
|
|
||||||
<On Options="macOS">
|
|
||||||
<x:Boolean>False</x:Boolean>
|
|
||||||
</On>
|
|
||||||
</OnPlatform>
|
|
||||||
</Setter>
|
|
||||||
<Setter Property="IsCloseButtonVisible">
|
|
||||||
<OnPlatform>
|
|
||||||
<On Options="Default, Windows, Linux">
|
|
||||||
<x:Boolean>True</x:Boolean>
|
|
||||||
</On>
|
|
||||||
<On Options="macOS">
|
|
||||||
<x:Boolean>False</x:Boolean>
|
|
||||||
</On>
|
|
||||||
</OnPlatform>
|
|
||||||
</Setter>
|
|
||||||
<Setter Property="SystemDecorations">
|
<Setter Property="SystemDecorations">
|
||||||
<OnPlatform>
|
<OnPlatform>
|
||||||
<On Options="Default, Windows, macOS">
|
<On Options="Default">
|
||||||
<SystemDecorations>Full</SystemDecorations>
|
<SystemDecorations>Full</SystemDecorations>
|
||||||
</On>
|
</On>
|
||||||
<On Options="Linux">
|
<On Options="Linux">
|
||||||
|
|||||||
Reference in New Issue
Block a user