Add a light theme that follows Windows

未關閉
#8 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
65/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
css, rust, tauri
領域
desktop, frontend

研究方向

Start in ui/style.css, where the colour variables are defined at the top, and find the hard-coded colours such as #131316 and #17171a in the rules. Add a @media (prefers-color-scheme: light) block that redefines the variables and set color-scheme: light dark on :root, then check the main window and all four dialogs. Done when Hidely follows the Windows theme, body and placeholder text reach 4.5:1 contrast in both themes, the dark theme looks unchanged, and the pull request includes screenshots.

由索引模型根據 Issue 內容生成。

描述

enhancement help wanted

Hidely is dark only. It should follow the Windows light or dark setting.

What to do

All colours are CSS variables at the top of ui/style.css (--shell, --pane, --text, --line, --fill, --ok, --hidden, --warn and so on).

  • Add an @media (prefers-color-scheme: light) block that redefines those variables, and set color-scheme: light dark on :root.
  • Find the few colours written directly in rules (for example the dialog background #131316 and the table header #17171a) and turn them into variables so they switch too.
  • The window is see-through. Check the light version over both a dark and a bright desktop background.

Requirements

  • Body text and placeholder text must reach a contrast ratio of at least 4.5:1 in both themes.
  • The five window statuses must stay distinguishable. They already use different icons and words, so colour is not the only signal; keep it that way.
  • The dark theme must look the same as it does today.

Done when

Switching Windows between light and dark (Settings, Personalisation, Colours) switches Hidely, and both look right in the main window and all four dialogs. Screenshots of both in the pull request, please.

主要語言
Rust
星號
7
分支
1
平均合併
6 小時 34 分鐘
30 天內合併 PR
2

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CodingRule/Hidely 的其他 Issue

查看 CodingRule/Hidely 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。