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:DesignWidth="800"
|
||||
x:CompileBindings="True"
|
||||
IsFullScreenButtonVisible="True"
|
||||
IsFullScreenButtonVisible="{OnPlatform True,macOS=False}"
|
||||
x:DataType="viewModels:MainWindowViewModel"
|
||||
Icon="/Assets/Ursa.ico"
|
||||
mc:Ignorable="d">
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:u="https://irihi.tech/ursa">
|
||||
<!-- Add Resources Here -->
|
||||
<ControlTheme x:Key="{x:Type u:UrsaWindow}" TargetType="u:UrsaWindow">
|
||||
<Setter Property="Background" Value="{DynamicResource WindowDefaultBackground}" />
|
||||
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
|
||||
@@ -12,20 +11,44 @@
|
||||
<Setter Property="ExtendClientAreaTitleBarHeightHint" Value="-1" />
|
||||
<Setter Property="ExtendClientAreaToDecorationsHint" 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">
|
||||
<OnPlatform>
|
||||
<OnPlatform.Default>
|
||||
<On Options="Default, Windows, macOS">
|
||||
<SystemDecorations>Full</SystemDecorations>
|
||||
</OnPlatform.Default>
|
||||
<OnPlatform.macOS>
|
||||
<SystemDecorations>Full</SystemDecorations>
|
||||
</OnPlatform.macOS>
|
||||
<OnPlatform.Linux>
|
||||
</On>
|
||||
<On Options="Linux">
|
||||
<SystemDecorations>None</SystemDecorations>
|
||||
</OnPlatform.Linux>
|
||||
<OnPlatform.Windows>
|
||||
<SystemDecorations>Full</SystemDecorations>
|
||||
</OnPlatform.Windows>
|
||||
</On>
|
||||
</OnPlatform>
|
||||
</Setter>
|
||||
<Setter Property="Template">
|
||||
|
||||
Reference in New Issue
Block a user