Skip to content

TP-07 — Map editor_colors to QueryaWorkbenchTheme #102

Description

@ZhuchkaTriplesix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    parserTheme parser epic label: parserthemeTheming, colors, VS Code themes

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions