Desktop tray functionality and controls #538

Closed
epicleafies wants to merge 10 commits from desktop-tray-with-settings into qt6 AGit
epicleafies commented 2026-03-18 23:58:52 +00:00 (Migrated from github.com)

Added window behavior as a new option in settings. #513
Added window behavior page, allows the user to configure if the tray is visible, behavior on minimization and behavior on closing.
Tray icon matches dark and light mode in the app.
Tray icon gives option to show or quit when clicked on.
Added unit, qml and functional tests.

Screenshot from 2026-03-25 15-35-28 Screenshot from 2026-03-25 15-35-39
Added window behavior as a new option in settings. #513 Added window behavior page, allows the user to configure if the tray is visible, behavior on minimization and behavior on closing. Tray icon matches dark and light mode in the app. Tray icon gives option to show or quit when clicked on. Added unit, qml and functional tests. <img width="1915" height="1007" alt="Screenshot from 2026-03-25 15-35-28" src="https://git.fish.foo/attachments/daa4bf03-da71-4ecc-93ad-ec3d088238c9" /> <img width="1915" height="1007" alt="Screenshot from 2026-03-25 15-35-39" src="https://git.fish.foo/attachments/09670e56-04a2-4afa-a3ce-83f72b543257" />
epicleafies commented 2026-03-19 01:16:43 +00:00 (Migrated from github.com)

Needs testing on Windows and Mac. Some of the behavior is OS dependent.

Needs testing on Windows and Mac. Some of the behavior is OS dependent.
hebasto commented 2026-03-23 13:49:10 +00:00 (Migrated from github.com)

Please rebase.

Please rebase.
johnny9 (Migrated from github.com) reviewed 2026-03-29 13:26:55 +00:00
johnny9 (Migrated from github.com) left a comment

I like the settings options but lets try to use the QML SystemTrayIcon instead of implementing the platform-specific DBus notification apis. These will only work on linux platforms.

One problem with these tray icons is that Qt doesn't support the native versions on all platforms and this means we'll need to link Widgets in order to implement this on platforms that don't have native support which I think includes Windows

I like the settings options but lets try to use the QML SystemTrayIcon instead of implementing the platform-specific DBus notification apis. These will only work on linux platforms. One problem with these tray icons is that Qt doesn't support the native versions on all platforms and this means we'll need to link Widgets in order to implement this on platforms that don't have native support which I think includes Windows
MarnixCroes (Migrated from github.com) reviewed 2026-05-12 13:12:56 +00:00
MarnixCroes (Migrated from github.com) left a comment

9bae920c6a02b039c146ad73fa0f3161d5c97073

When I put the app to light mode, the tray Icon is not visible. Only on hover it becomes slightly visible

Image Image
9bae920c6a02b039c146ad73fa0f3161d5c97073 When I put the app to light mode, the tray Icon is not visible. Only on hover it becomes slightly visible <img width="324" height="66" alt="Image" src="https://github.com/user-attachments/assets/4db3679e-3bfb-4748-aff1-30e24feccea8" /> <img width="324" height="66" alt="Image" src="https://github.com/user-attachments/assets/c83ac980-ca6f-4684-bc1e-1496b4c83280" />
MarnixCroes (Migrated from github.com) commented 2026-05-12 13:11:21 +00:00

Usually Show changes to Minimize when app is shown.
Maybe you can add this?

Usually `Show` changes to `Minimize` when app is shown. Maybe you can add this?
johnny9 (Migrated from github.com) approved these changes 2026-05-13 06:47:08 +00:00
johnny9 (Migrated from github.com) left a comment

ACK 9bae920c6a02b039c146ad73fa0f3161d5c97073

Tested on Ubuntu. Menu options and tray icon can be adjusted with follow up issues.

Edit:
issue added here https://github.com/bitcoin-core/gui-qml/issues/595 to track follow up

ACK 9bae920c6a02b039c146ad73fa0f3161d5c97073 Tested on Ubuntu. Menu options and tray icon can be adjusted with follow up issues. Edit: issue added here https://github.com/bitcoin-core/gui-qml/issues/595 to track follow up
epicleafies commented 2026-06-04 03:03:28 +00:00 (Migrated from github.com)

Superseded by #746

Superseded by #746
Sign in to join this conversation.
No description provided.