rust-windowing / rust-windowing/winit

Widen support for system theme detection to linux

Open
#4,403 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

DS - wayland DS - x11 S - enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.