-
-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent theme on the top bar #422
Comments
hmm, (afaik) looks like there's no system to change theme automatically when the system theme changes. does pulsar expose window properties like that to packages? |
This is the same in Atom, the menu bar is native to the OS so in theory should only change according to the OS theme, not Pulsar's (I've seen this before in Electron apps). One way to resolve this eventually would be to move to a non-native menu bar which I detailed here - #345 as it would be fully under Pulsar's control no matter what the OS is. |
I feel like electron must have a solution... edit: the reverse consistency would need a custom window huh... |
https://www.electronjs.org/docs/latest/tutorial/dark-mode Looks like it is possible here? |
I'm pretty sure that would mean we have to bump electron a bit before that could be done. But might be wrong |
Actually @Daeraxa I think you are right. We should be able to use this and can likely expose it as an additional Pulsar API for theme makers to take advantage of. Probably recommending they put it in the Looks like it was added in Electron V7.0.0-beta6, so I'd imagine it's available in v12.2.3 which is what we are currently using. |
So I was looking into how we might be able to accomplish this. So I'm considering, what if we don't prioritize an API to do this, but rather, we focus on making Pulsar do it automatically. I'm considering within the I feel like this might be a pretty elegant solution. |
So playing around with this method, I do have the The testing below is on Windows, and based on this discussion may be a Windows only problem, but I'll continue anyway: When set to a light theme with my changes:When set to dark theme with my changes:So as you can see when compared to previous behavior, like below: This is absolutely an improvement, and I'm curious if this behavior will exist on other platforms. Which if on other platforms the top menu bar of Electron apps already respect Dark mode, I assume it will. (Since even the Pulsar menu bar with the title doesn't respect my OS level Dark Mode on Windows) |
If your are using Gnome as wm, you can control top bar theme in Tweaks -> Appearance by switching Legacy Applications' theme. |
Thanks in advance for your bug report!
What happened?
On GNU Linux (KDE and Gnome) the top bar
does not change making it inconsistent.
Pulsar version
102.0
Which OS does this happen on?
🐧 Red Hat based (Fedora, Alma, RockyLinux, CentOS Stream, etc.)
OS details
Fedora 37
Which CPU architecture are you running this on?
64-bit(x86_64)
What steps are needed to reproduce this?
Additional Information:
The text was updated successfully, but these errors were encountered: