Merge pull request #294 from irihitech/ursawindow
Remove caption buttons on macOS
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
d:DesignHeight="450"
|
d:DesignHeight="450"
|
||||||
d:DesignWidth="800"
|
d:DesignWidth="800"
|
||||||
x:CompileBindings="True"
|
x:CompileBindings="True"
|
||||||
IsFullScreenButtonVisible="True"
|
IsFullScreenButtonVisible="{OnPlatform True,macOS=False}"
|
||||||
x:DataType="viewModels:MainWindowViewModel"
|
x:DataType="viewModels:MainWindowViewModel"
|
||||||
Icon="/Assets/Ursa.ico"
|
Icon="/Assets/Ursa.ico"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
xmlns="https://github.com/avaloniaui"
|
xmlns="https://github.com/avaloniaui"
|
||||||
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">
|
||||||
<!-- Add Resources Here -->
|
|
||||||
<ControlTheme x:Key="{x:Type u:UrsaWindow}" TargetType="u:UrsaWindow">
|
<ControlTheme x:Key="{x:Type u:UrsaWindow}" TargetType="u:UrsaWindow">
|
||||||
<Setter Property="Background" Value="{DynamicResource WindowDefaultBackground}" />
|
<Setter Property="Background" Value="{DynamicResource WindowDefaultBackground}" />
|
||||||
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
|
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
|
||||||
@@ -12,20 +11,44 @@
|
|||||||
<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">
|
||||||
|
<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="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>
|
||||||
<OnPlatform.Default>
|
<On Options="Default, Windows, macOS">
|
||||||
<SystemDecorations>Full</SystemDecorations>
|
<SystemDecorations>Full</SystemDecorations>
|
||||||
</OnPlatform.Default>
|
</On>
|
||||||
<OnPlatform.macOS>
|
<On Options="Linux">
|
||||||
<SystemDecorations>Full</SystemDecorations>
|
|
||||||
</OnPlatform.macOS>
|
|
||||||
<OnPlatform.Linux>
|
|
||||||
<SystemDecorations>None</SystemDecorations>
|
<SystemDecorations>None</SystemDecorations>
|
||||||
</OnPlatform.Linux>
|
</On>
|
||||||
<OnPlatform.Windows>
|
|
||||||
<SystemDecorations>Full</SystemDecorations>
|
|
||||||
</OnPlatform.Windows>
|
|
||||||
</OnPlatform>
|
</OnPlatform>
|
||||||
</Setter>
|
</Setter>
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
|
|||||||
Reference in New Issue
Block a user