Hot Reload of Default Color Schemes
Is your feature request related to a problem? Please describe. As far as I know and can verify, this happens on Gnome. When I use a theme switcher to switch to dark theme DE wide (setting the appropriate variables in the process), most applications react to those changed variables and change their theme as well. WebCord, however, needs to be restarted for the updated variables to take effect when theme is "Sync with system". I suspect this is an electron thing in general, since it also happens on Element.
Describe the solution you'd like WebCord changes it's theme without having to restart the instance of the application. Or there is some API of WebCord callable from the command line which does the same, allowing for automation of this task.
Describe alternatives you've considered Currently I just kill the instance and launch a new one through a script.
Yeah, this is an Electron bug (with @media implementation), but there's an API in Electron which could be used instead to determine if dark or light theme should be used. I've planned to implement it, given WebCord can tweak localStorage and the website itself to change the color scheme of the Discord theme.
I've also had some plans to integrate WebCord's color scheme with Discord's (so it uses the light or dark theme based on the current theme used for Discord) and I would like to make that to work with the custom CSS feature as well (as long as it seems to be possible and worth it).
Seeing how Electron.js supports the use of prefer-color-scheme, I'm guessing it should be small change? If you can comment on the scope of the change, I might look into and make a PR if I understand stuff 😅
Seeing how Electron.js supports the use of
prefer-color-scheme, I'm guessing it should be small change?
Kinda, I would need to move color scheme settings to WebCord, which probably means that the user should not see them in Discord, but WebCord will be able to control them on their own. For auto WebCord will change Discord theme to dark or light based on the Electron API for that purpose. prefer-color-scheme does not really work there…
If you can comment on the scope of the change, I might look into and make a PR if I understand stuff 😅
I'll probably handle that on my own if I'll be able to. Right now I need to prioritize on bugs first and improvements to the existing implementation of some features. I don't like them to be half-done.