Epic: A
Depends on: TP-04
Source: docs/theme-parser-github-issues.md
Goal
Convert custom editor color tokens into QueryaEditorTheme.
Files
lib/core/theme/parser/querya_editor_theme_from_manifest.dart
test/core/theme/parser/querya_editor_theme_from_manifest_test.dart
Implementation
Add:
QueryaEditorTheme editorThemeFromQueryaColors({
required Map<String, String> colors,
required QueryaEditorTheme fallback,
});
Support keys matching current QueryaEditorTheme fields. At minimum:
background
foreground
selection
lineNumber
bracketMatch
widgetBorder
If QueryaEditorTheme has additional fields, include them explicitly.
Fallback:
- missing/invalid key -> fallback field.
Acceptance Criteria
- Full fixture changes editor background/foreground/selection.
- Minimal fixture falls back for missing fields.
- Invalid optional color does not crash.
Tests
- full custom values;
- fallback behavior;
- invalid optional value.
Epic: A
Depends on: TP-04
Source:
docs/theme-parser-github-issues.mdGoal
Convert custom editor color tokens into
QueryaEditorTheme.Files
lib/core/theme/parser/querya_editor_theme_from_manifest.darttest/core/theme/parser/querya_editor_theme_from_manifest_test.dartImplementation
Add:
Support keys matching current
QueryaEditorThemefields. At minimum:backgroundforegroundselectionlineNumberbracketMatchwidgetBorderIf
QueryaEditorThemehas additional fields, include them explicitly.Fallback:
Acceptance Criteria
Tests