-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add docs on how to set dark mode on linux. #13
Comments
This library does not set dark mode. It only reads the setting so you can make use of it in your application. |
I realize that, I'm after a quick note in the readme on how to configure my system such that rust-dark-light will pick up either dark or light mode. The problem from my perspective is I have an egui app that uses rust-dark-light under the hood which is causing it to show up as light-mode. |
In Ubuntu 20.04 LTS, Open the "Settings" tool. In the Appearance tab, Window colors have the options "LIght", "Standard", and "Dark". This affects most things on screen. Unfortunately, rust-dark-light returns "Mode::Light" even for "Dark" mode. |
Does anyone know if Ubuntu use a different system property than whatever we're reading from? |
For anyone stumbling here looking how to set dark mode without a GUI settings app: gsettings set org.gnome.desktop.interface color-scheme prefer-dark |
Looks like it. The command Edit: There's some weirdness going on here. The |
For the record: The problem is that https://github.com/demurgos/detect-desktop-environment does not work correctly. |
Some docs on how to set dark mode on linux in the recommended
XDG Desktop Portal dbus
method would be appreciated.I searched around but couldnt figure out how to set it up.
The text was updated successfully, but these errors were encountered: