Add a light theme that follows Windows

Ouverte
#8 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
65/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
css, rust, tauri
Domaine
desktop, frontend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Rust
Étoiles
7
Forks
1
Merge moyen
6 h 34 min
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de CodingRule/Hidely

Toutes les issues de CodingRule/Hidely

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.