Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

refactor(theme): QueryaColors and context.colors instead of shadcn's ColorScheme (#1465)

Aperta
#1,730 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
dart, flutter
Ambito
frontend

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

frontend P2 theme ui

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
  • QueryaColors in core/theme (immutable, copyWith, lerp) with exactly those fields, built from QueryaTheme the way the shadcn scheme is today (same values, so nothing changes on screen).
  • context.colors next to context.workbench / context.editorTheme in querya_theme_scope.dart.
  • While the migration runs, the shadcn ColorScheme is still produced from QueryaColors for the widgets that need it; it goes with the shell (#1735).
  • Unit tests: dark and light defaults equal today's scheme field by field; lerp at 0 / 1.
Acceptance
  • QueryaColors and context.colors exist 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

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di QueryaHub/Querya-Desktop

Tutte le issue di QueryaHub/Querya-Desktop

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.