refactor(theme): QueryaColors and context.colors instead of shadcn's ColorScheme (#1465)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Dart
- Estrellas
- 23
- Forks
- 1
- Merge medio
- 31 min
- PR fusionados (30 d)
- 570
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de QueryaHub/Querya-Desktop
-
enhancement ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
QueryaHub/Querya-Desktop#1689 ·
Los mantenedores suelen responder en 1 día
-
ui(dialogs): make destructive query and DML preview dialogs adaptive and prevent table name overflowAbiertobug frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
QueryaHub/Querya-Desktop#1642 ·
Los mantenedores suelen responder en 1 día
-
bug error-handling settings
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
QueryaHub/Querya-Desktop#1637 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
QueryaHub/Querya-Desktop#1636 ·
Los mantenedores suelen responder en 1 día
-
enhancement marketplace
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
QueryaHub/Querya-Desktop#1635 ·
Los mantenedores suelen responder en 1 día
Todos los issues de QueryaHub/Querya-Desktop
Issues similares
-
agent:in-progress agent:ready feature P2 · 中 区域: 悬浮窗
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
ASDW51/DanmuFloat#178 ·
Los mantenedores suelen responder en 1 día
-
Missing workoutsAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
InlitX/GymMane#237 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
AppFlowy-IO/AppFlowy#9077 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Abhinivesh2729/Thinai#41 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
0niel/university-app#617 ·
Los mantenedores suelen responder en 1 día