Epic: A
Depends on: TP-04
Source: docs/theme-parser-github-issues.md
Goal
Convert workbench-related custom tokens into QueryaWorkbenchTheme.
Files
lib/core/theme/parser/querya_workbench_theme_from_manifest.dart
test/core/theme/parser/querya_workbench_theme_from_manifest_test.dart
Implementation
Add:
QueryaWorkbenchTheme workbenchThemeFromQueryaColors({
required Map<String, String> colors,
required QueryaWorkbenchTheme fallback,
});
Support keys:
sidebarBackground
canvas
surface
editorBackground
mutedForeground
accent
onAccent
borderSubtle
destructive
gitModified
gitUntracked
If the docs use background, map it deliberately:
background -> canvas and/or editorBackground only if explicit in docs.
Acceptance Criteria
- Mapping is documented in code comments or docs table.
- Missing keys use fallback.
- Invalid optional colors use fallback.
Tests
- full custom workbench mapping;
- minimal fallback;
- invalid optional value.
Epic: A
Depends on: TP-04
Source:
docs/theme-parser-github-issues.mdGoal
Convert workbench-related custom tokens into
QueryaWorkbenchTheme.Files
lib/core/theme/parser/querya_workbench_theme_from_manifest.darttest/core/theme/parser/querya_workbench_theme_from_manifest_test.dartImplementation
Add:
Support keys:
sidebarBackgroundcanvassurfaceeditorBackgroundmutedForegroundaccentonAccentborderSubtledestructivegitModifiedgitUntrackedIf the docs use
background, map it deliberately:background->canvasand/oreditorBackgroundonly if explicit in docs.Acceptance Criteria
Tests