Add a light theme that follows Windows
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 65/100
研究方向
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 內容生成。
描述
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 setcolor-scheme: light darkon:root. - Find the few colours written directly in rules (for example the dialog background
#131316and 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
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CodingRule/Hidely 的其他 Issue
-
accessibility help wanted
難度 2/5 1-3 小時 新手友好度 72/100
CodingRule/Hidely#15 ·
-
compatibility help wanted testing
難度 2/5 1-3 小時 新手友好度 72/100
CodingRule/Hidely#14 ·
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 85/100
CodingRule/Hidely#13 ·
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 88/100
CodingRule/Hidely#12 ·
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 84/100
CodingRule/Hidely#3 ·
查看 CodingRule/Hidely 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
autofixer: follow-up
難度 2/5 1-3 小時 新手友好度 78/100
tursodatabase/turso#12531 ·
維護者通常 1 天內回覆
-
bug help wanted ui
難度 2/5 1-3 小時 新手友好度 82/100
userFRM/egui-charts#4292 ·
維護者通常 1 天內回覆
-
Issue-Bug Need-Review
難度 1/5 1-3 小時 新手友好度 85/100
PowerShell/DSC#1832 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆