Style context menus as light or dark depending on the base theme - #9551
Style context menus as light or dark depending on the base theme#9551absidue wants to merge 2 commits into
Conversation
|
@Shadorc Is that just after launch or does it also happen if you change the base theme while FreeTube is running? Potentially related upstream items: |
|
@absidue It does not work while FreeTube is running and after launch. I'm never able to get the context menus with a light theme (my OS theme is dark, it's probabbly using this no matter what). Edit: I confirm that the context menus theme can only be changed by changing my OS theme, FreeTube's base theme has no impact. |
|
If you press Alt to show the app menu does that at least match? The fact that the devtools get updated means it is at least overriding the |
|
In that case it seems like it is an Electron or Chromium bug to me (if you could create a standalone repro in Electron Fiddle and report it in the Electron repo that would be great). As it seems to work fine on Windows and macOS, as long as this pull request doesn't make it any worse than before on Linux, it would still be good to see this merged (it should hopefully start working on Linux automatically once it is fixed upstream). |
|
I agree! Edit: Reproduced with Electron Fiddle, upstream bug confirmed to be electron/electron#28887 |


Pull Request Type
Description
Currently the context menus in FreeTube follow the system level dark/light mode, which means you can get dark menus with a light theme selected in FreeTube or get flashbanged by white menus when you have a dark theme set in FreeTube. With this pull request FreeTube overrides Electron's
themeSourcesetting to"dark","light"or"system"as appropriate. It also affects the dev tools and has some operating system specific effects such as changing the title bar and/or app menu colours, so most parts of the Electron UI should match as well as operating system level UI that Electron is able to override.Screenshots
Black theme
Solarized Light theme
Testing
Test various themes in FreeTube and check that the context menu and devtools theming matches, additionally confirm that it correctly switched back to the operating system theme when the system theme is selected in FreeTube.
Desktop