diff --git a/src/Artemis.UI.Linux/App.axaml b/src/Artemis.UI.Linux/App.axaml
index e5eee9364..fe9185a01 100644
--- a/src/Artemis.UI.Linux/App.axaml
+++ b/src/Artemis.UI.Linux/App.axaml
@@ -9,4 +9,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Artemis.UI.MacOS/App.axaml b/src/Artemis.UI.MacOS/App.axaml
index b32091796..ed4d1b51a 100644
--- a/src/Artemis.UI.MacOS/App.axaml
+++ b/src/Artemis.UI.MacOS/App.axaml
@@ -9,4 +9,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Artemis.UI.Windows/App.axaml b/src/Artemis.UI.Windows/App.axaml
index 73ac69a6c..9f4243a47 100644
--- a/src/Artemis.UI.Windows/App.axaml
+++ b/src/Artemis.UI.Windows/App.axaml
@@ -9,4 +9,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Artemis.UI/ArtemisTrayIcon.axaml b/src/Artemis.UI/ArtemisTrayIcon.axaml
deleted file mode 100644
index d9b3e4f4c..000000000
--- a/src/Artemis.UI/ArtemisTrayIcon.axaml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Artemis.UI/Screens/Root/RootViewModel.cs b/src/Artemis.UI/Screens/Root/RootViewModel.cs
index eaa22f364..5d1498149 100644
--- a/src/Artemis.UI/Screens/Root/RootViewModel.cs
+++ b/src/Artemis.UI/Screens/Root/RootViewModel.cs
@@ -30,8 +30,6 @@ namespace Artemis.UI.Screens.Root
private readonly ISidebarVmFactory _sidebarVmFactory;
private readonly IWindowService _windowService;
private SidebarViewModel? _sidebarViewModel;
- private TrayIcon? _trayIcon;
- private TrayIcons? _trayIcons;
private ViewModelBase? _titleBarViewModel;
public RootViewModel(ICoreService coreService,
@@ -78,7 +76,6 @@ namespace Artemis.UI.Screens.Root
TitleBarViewModel = _defaultTitleBarViewModel;
}
-
public SidebarViewModel? SidebarViewModel
{
get => _sidebarViewModel;
@@ -105,12 +102,6 @@ namespace Artemis.UI.Screens.Root
bool minimized = _coreService.StartupArguments.Contains("--minimized");
bool showOnAutoRun = _settingsService.GetSetting("UI.ShowOnStartup", true).Value;
- // Always show the tray icon if ShowOnStartup is false or the user has no way to open the main window
- bool showTrayIcon = !showOnAutoRun || _settingsService.GetSetting("UI.ShowTrayIcon", true).Value;
-
- if (showTrayIcon)
- ShowTrayIcon();
-
if (autoRunning && !showOnAutoRun || minimized)
{
// TODO: Auto-update
@@ -127,27 +118,6 @@ namespace Artemis.UI.Screens.Root
_windowService.ShowWindow();
}
- private void ShowTrayIcon()
- {
- _trayIcon = new TrayIcon
- {
- Icon = new WindowIcon(_assetLoader.Open(new Uri("avares://Artemis.UI/Assets/Images/Logo/application.ico"))),
- Command = ReactiveCommand.Create(OpenMainWindow)
- };
- _trayIcon.Menu = (NativeMenu?) Application.Current!.FindResource("TrayIconMenu");
- _trayIcons = new TrayIcons {_trayIcon};
- TrayIcon.SetIcons(Application.Current!, _trayIcons);
- }
-
- private void HideTrayIcon()
- {
- _trayIcon?.Dispose();
- TrayIcon.SetIcons(Application.Current!, null!);
-
- _trayIcon = null;
- _trayIcons = null;
- }
-
///
public RoutingState Router { get; }
diff --git a/src/Artemis.UI/Styles/Artemis.axaml b/src/Artemis.UI/Styles/Artemis.axaml
index 111e75cd4..b10f8bdb6 100644
--- a/src/Artemis.UI/Styles/Artemis.axaml
+++ b/src/Artemis.UI/Styles/Artemis.axaml
@@ -1,13 +1,6 @@
-
-
-
-
-
-
-