[PR #682] Detect System Color Theme #662

Open
opened 2026-02-28 14:33:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jpochyla/psst/pull/682
Author: @NandeMD
Created: 7/25/2025
Status: 🔄 Open

Base: mainHead: auto_detect_color_mode


📝 Commits (7)

  • 5489558 auto-detect system theme on first start
  • a21a836 added "Detect System Theme" button to preferences
  • 598dd86 marked roadmap
  • 97f807f removed unnecessary button, added new "system" theme option
  • 7a4bfd7 add new "Theme::System" and default to it
  • 2206d1e detect system color theme on app startup if config theme is
  • dbd0c0d removed unnecessary controllers

📊 Changes

6 files changed (+401 additions, -32 deletions)

View changed files

📝 Cargo.lock (+363 -16)
📝 README.md (+2 -2)
📝 psst-gui/Cargo.toml (+1 -0)
📝 psst-gui/src/data/config.rs (+2 -1)
📝 psst-gui/src/ui/preferences.rs (+6 -2)
📝 psst-gui/src/ui/theme.rs (+27 -11)

📄 Description

This PR adds two things:

  • On the first startup, (if there is no $HOME/.config/Psst/config.json file), app tries to detect the system theme, falls back to Theme::Light on error or unspecified theme.
  • A new button on the Preferences -> General Tab -> Theme. When pressed, it tries to detect the system theme, falls back to Theme::Light on error or unspecified theme:

Screencast_20250725_143112.webm


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jpochyla/psst/pull/682 **Author:** [@NandeMD](https://github.com/NandeMD) **Created:** 7/25/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `auto_detect_color_mode` --- ### 📝 Commits (7) - [`5489558`](https://github.com/jpochyla/psst/commit/5489558326f769f6db50d356b96dc3a92389804a) auto-detect system theme on first start - [`a21a836`](https://github.com/jpochyla/psst/commit/a21a8367d0bcf0959270a953bf6e4e94f0dcefa0) added "Detect System Theme" button to preferences - [`598dd86`](https://github.com/jpochyla/psst/commit/598dd8699376ac9e678a3f5195237eda3d699a0e) marked roadmap - [`97f807f`](https://github.com/jpochyla/psst/commit/97f807faa31c4b29027c91e885709c2e5aa072f2) removed unnecessary button, added new "system" theme option - [`7a4bfd7`](https://github.com/jpochyla/psst/commit/7a4bfd76c4d67fd45b73d7b8f4366acc1031a235) add new "Theme::System" and default to it - [`2206d1e`](https://github.com/jpochyla/psst/commit/2206d1ea71959208781386db2cb51fcff2ee7acf) detect system color theme on app startup if config theme is - [`dbd0c0d`](https://github.com/jpochyla/psst/commit/dbd0c0dc1030595ffcc5c137a62d910cd0025372) removed unnecessary controllers ### 📊 Changes **6 files changed** (+401 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+363 -16) 📝 `README.md` (+2 -2) 📝 `psst-gui/Cargo.toml` (+1 -0) 📝 `psst-gui/src/data/config.rs` (+2 -1) 📝 `psst-gui/src/ui/preferences.rs` (+6 -2) 📝 `psst-gui/src/ui/theme.rs` (+27 -11) </details> ### 📄 Description This PR adds two things: * On the first startup, (if there is no `$HOME/.config/Psst/config.json` file), app tries to detect the system theme, falls back to `Theme::Light` on error or unspecified theme. * A new button on the `Preferences -> General Tab -> Theme`. When pressed, it tries to detect the system theme, falls back to `Theme::Light` on error or unspecified theme: [Screencast_20250725_143112.webm](https://github.com/user-attachments/assets/830c1285-b21d-4289-9787-53842f18c856) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#662
No description provided.