mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 15:35:56 +03:00
[PR #340] Detect light/dark OS theme #486
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#486
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jpochyla/psst/pull/340
Author: @nickolasclarke
Created: 10/3/2022
Status: 🔄 Open
Base:
main← Head:master📝 Commits (8)
16bc21eadd basic system theme optiona039bb2bump reqs544cdaaRemove dbus by using zbus variant497ead7bump dark-light0886a17Merge remote-tracking branch 'upstream/master'4590842reset Cargo locke6695f2Lintdd46b02Add lock📊 Changes
5 files changed (+455 additions, -174 deletions)
View changed files
📝
Cargo.lock(+431 -161)📝
psst-gui/Cargo.toml(+1 -0)📝
psst-gui/src/data/config.rs(+1 -0)📝
psst-gui/src/ui/preferences.rs(+6 -2)📝
psst-gui/src/ui/theme.rs(+16 -11)📄 Description
This adds an option to use the System preferences to set the theme at launch. It uses the dark-light crate to do so.
This is my very first time touching Rust, Druid, and frankly any sort of native GUI framework. While it should be relatively simple to have a long-running process to call
setup_system_themeor similar continuously, it is not clear to me where that is best done within Druid. Unfortunately,dark-lightdoes not have a method check and yield state change asynchronously. If you can point me in the right direction for where to put an infinite loop like that, I'll gladly update this PR.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.