Skip to content
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

Support for dark mode #1797

Open
philip-peterson opened this issue Jul 15, 2024 · 2 comments
Open

Support for dark mode #1797

philip-peterson opened this issue Jul 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@philip-peterson
Copy link

philip-peterson commented Jul 15, 2024

I went looking for information on dark mode. It seems like it is normally supported by GTK4 apps through libadwaita. The way to access this through Rust may be libadwaita's StyleManager::is_dark.

https://docs.rs/libadwaita/latest/libadwaita/struct.StyleManager.html#method.is_dark

@philip-peterson philip-peterson added the enhancement New feature or request label Jul 15, 2024
@sdroege
Copy link
Member

sdroege commented Jul 17, 2024

As this is a general GTK question not directly related to the bindings, you'll probably have more luck at https://discourse.gnome.org

@martinling
Copy link
Contributor

See greatscottgadgets/packetry#166 for an example of doing this without libadwaita.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants