Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#1,730 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
dart, flutter
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Dart
スター
23
フォーク
1
平均マージ
31分
マージ済み PR(30日)
570

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

QueryaHub/Querya-Desktop のほかの issue

QueryaHub/Querya-Desktop の issue をすべて見る

似ている issue

Dart の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。