Skip to content

Conversation

eduardomozart
Copy link
Contributor

@eduardomozart eduardomozart commented Aug 30, 2025

On Windows (with Dark mode theme enabled) and macOS (which always have a dark tray), it's almost impossible to find Rabbit Remote Control icon on the systray because it matches the color of the systray. This PR is a proof of concept that I do believe you can develop it further and make it better to (1) always use white app systray icon on macOS in "rabbit-black" theme or (2) if the system is running in Dark mode (e.g. Windows) and "rabbit-black" is the default theme, uses a white app systray icon instead.
I tried to temporarily replace the theme by using QIcon::setThemeName("rabbit-white"), but it doesn't work, so I had to copy the app.svg file from rabbit-white over to rabbit-black and rename it to "app-invert", but maybe there's a better way to do this.
Also, maybe it would be better to copy the function to detect dark-mode to RabbitCommon instead, but I don't know how to declare headers to add a function, and not sure if I can load a function from there on Rabbit Remote Control MainWindow, as I wasn't able to read the QIcon::themeName which should be set from there to detect if rabbit-black was in use, so I read the Rabbit Remote Control conf file directly.

@KangLin
Copy link
Owner

KangLin commented Aug 30, 2025

Thanks. I'll fix it in RabbitCommon.

@KangLin KangLin added invalid This doesn't seem right test and removed invalid This doesn't seem right labels Aug 31, 2025
@KangLin KangLin force-pushed the master branch 8 times, most recently from 1a0f8a2 to ff2e599 Compare September 8, 2025 03:28
@KangLin KangLin force-pushed the master branch 6 times, most recently from 0822b5c to 1e11faa Compare September 17, 2025 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants