refactor(theme): QueryaColors and context.colors instead of shadcn's ColorScheme (#1465)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start with lib/core/theme/querya_theme.dart and querya_theme_scope.dart to see how QueryaTheme, ThemeData, and the existing context extensions are assembled. Add QueryaColors with the listed fields, copyWith, and lerp, then expose context.colors; add unit tests for light and dark defaults, imported themes, and interpolation at 0 and 1. Done means the values match today's scheme and no callers are migrated or visuals changed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Part of #1465 (step 3a). Prerequisite for the per-folder migration (#1731).
Problem
The app's colours are shadcn's: typedef QueryaThemeColorScheme = ColorScheme; (lib/core/theme/querya_theme.dart), built into shadcn's ThemeData, and read as Theme.of(context).colorScheme.x (shadcn Theme). A probe on dev (2026-10-18) counts 164 Theme + 42 shadcn.Theme and 116 ColorScheme + 24 shadcn.ColorScheme uses that need shadcn.
Only these fields of the scheme are read in lib/ (counts of cs. / colorScheme. uses):
| field | uses |
|---|---|
mutedForeground |
190 |
primary |
160 |
border |
115 |
foreground |
104 |
destructive |
104 |
muted |
81 |
card |
46 |
background |
41 |
popover / popoverForeground |
29 |
ring |
6 |
secondary / accent |
6 |
chart1..chart5 |
6 |
Change
QueryaColorsincore/theme(immutable,copyWith,lerp) with exactly those fields, built fromQueryaThemethe way the shadcn scheme is today (same values, so nothing changes on screen).context.colorsnext tocontext.workbench/context.editorThemeinquerya_theme_scope.dart.- While the migration runs, the shadcn
ColorSchemeis still produced fromQueryaColorsfor the widgets that need it; it goes with the shell (#1735). - Unit tests: dark and light defaults equal today's scheme field by field;
lerpat 0 / 1.
Acceptance
-
QueryaColorsandcontext.colorsexist and give today's colours in both default themes and in an imported theme. - No caller migrated yet (that is the next issue); no visual change.
- Lingua principale
- Dart
- Stelle
- 23
- Fork
- 1
- Merge medio
- 31m
- PR unite (30g)
- 570
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di QueryaHub/Querya-Desktop
-
enhancement ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
QueryaHub/Querya-Desktop#1689 ·
I maintainer di solito rispondono entro 1 giorno
-
ui(dialogs): make destructive query and DML preview dialogs adaptive and prevent table name overflowApertabug frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
QueryaHub/Querya-Desktop#1642 ·
I maintainer di solito rispondono entro 1 giorno
-
bug error-handling settings
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
QueryaHub/Querya-Desktop#1637 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
QueryaHub/Querya-Desktop#1636 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement marketplace
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
QueryaHub/Querya-Desktop#1635 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di QueryaHub/Querya-Desktop
Issue simili
-
good-first-issue P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
flutter/dart-intellij-third-party#758 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: Incorrect location coordinates on logged Sound Meter dataForse già presa @Jashan32 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area/archive bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
DarkFlippers/qUnleashed#374 ·
I maintainer di solito rispondono entro 1 giorno
-
agent:in-progress agent:ready feature P2 · 中 区域: 悬浮窗
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ASDW51/DanmuFloat#178 ·
I maintainer di solito rispondono entro 1 giorno
-
Missing workoutsApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
InlitX/GymMane#237 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni