diff --git a/src/client/Launcher/Windows/MainWindow.axaml b/src/client/Launcher/Windows/MainWindow.axaml index adfe7887..c708db17 100644 --- a/src/client/Launcher/Windows/MainWindow.axaml +++ b/src/client/Launcher/Windows/MainWindow.axaml @@ -1,15 +1,91 @@ - - - + Height="720" + Padding="0" + CanResize="False" + ExtendClientAreaToDecorationsHint="True" + ExtendClientAreaChromeHints="NoChrome" + Background="#222222" + RequestedThemeVariant="Dark"> + + + + + + - + + + + + + + + + + + + + + + + + + + diff --git a/src/client/Launcher/Windows/MainWindow.axaml.cs b/src/client/Launcher/Windows/MainWindow.axaml.cs index b44c8bf3..05650690 100644 --- a/src/client/Launcher/Windows/MainWindow.axaml.cs +++ b/src/client/Launcher/Windows/MainWindow.axaml.cs @@ -1,4 +1,5 @@ using Arise.Client.Launcher.Controllers; +using Avalonia.Interactivity; namespace Arise.Client.Launcher.Windows; @@ -16,4 +17,16 @@ protected override void OnInitialized() base.OnInitialized(); } + + private void OnCloseClick(object? sender, RoutedEventArgs e) + { + // todo: check if something needs to be disposed beforehand + // todo: check if this should just be minimized to tray instead of closing + Close(); + } + + private void OnMinimizeClick(object? sender, RoutedEventArgs e) + { + WindowState = WindowState.Minimized; + } }