Skip to content

add option to keep the legacy system tray icon - #4843

Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
trayicon-setings
May 28, 2026
Merged

Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
trayicon-setings

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request adds support for using a legacy (pre-2026) system tray icon in UniGetUI. It introduces a new user setting to toggle between the legacy and redesigned tray icons, updates the UI to allow users to select this option, and ensures the application loads the correct icon based on the setting. The necessary resources and localization strings are also included.

System Tray Icon Feature:

  • Added a new setting, UseLegacyTrayIcon, to allow users to switch between the legacy and redesigned system tray icons. This includes updating the settings engine enum and key resolution logic (SettingsEngine_Names.cs). [
  • Updated tray icon selection logic in both Avalonia and classic UI code to load the appropriate icon variant based on the new setting (TrayService.cs, MainWindow.xaml.cs).
  • Added legacy tray icon resources to the Avalonia project and ensured they are included as application assets (UniGetUI.Avalonia.csproj).

User Interface Updates:

  • Added a new checkbox to the interface settings page in both Avalonia and classic UI to allow toggling the legacy tray icon, with appropriate event handlers to refresh the tray icon when changed (Interface_P.axaml, Interface_P.xaml, Interface_PViewModel.cs, Interface_P.xaml.cs).

#4838

@GabrielDuf Gabriel Dufresne (GabrielDuf) changed the title add option to keep the legacy (pre-2026) system tray icon add option to keep the legacy system tray icon May 28, 2026
@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit 1f3d48f into main May 28, 2026
4 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the trayicon-setings branch May 28, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants