rust-windowing / rust-windowing/winit
Widen support for system theme detection to linux
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 1.3k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 9
Description
Description
Currently, as stated by the documentation getting the system theme is only supported on Windows, web and macOS
I'm interested in linux support, as it's my os and has a quick fix: the crate dark-light, which supports theme detection on a variety of DEs through the use of dbus API.
I'd be happy to submit a PR to add this crate, however I don't know the project's policies on adding dependencies, so let me know if this is something the project wants. Also lmk if it should also replace the current windows / web / macos system theme detection code for homogeneity, as it's multi platform.
Relevant platforms
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the documented ActiveEventLoop::system_theme API and review the dark-light crate's Linux and D-Bus support. Check the project's dependency and platform-support policies before deciding whether Linux detection should use dark-light or a separate implementation; done means system theme detection works on supported Linux desktop environments and the documentation reflects the expanded support.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100