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 f6fd97ce..6a905b06 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; @@ -8,4 +9,16 @@ public MainWindow() { InitializeComponent(); } + + 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; + } }