Skip to content

TP-13 — Load selected theme by definition #108

Description

@ZhuchkaTriplesix

Epic: B
Depends on: TP-12, TP-09

Source: docs/theme-parser-github-issues.md

Goal

Given a ThemeDefinition, parse the full theme and return ThemeLoadResult.

Files

  • lib/core/theme/theme_registry_service.dart
  • test/core/theme/theme_registry_service_test.dart

Implementation

Add:

Future<ThemeLoadResult> loadTheme(ThemeDefinition definition)

Behavior:

  • ThemeFormat.queryaCustom -> QueryaThemeManifest.fromJsonString -> queryaThemeFromManifest.
  • ThemeFormat.vscode -> existing VsCodeThemeManifest -> existing queryaThemeFromVsCode.
  • failure -> ThemeLoadFailure.
  • missing file -> ThemeLoadFailure.

Acceptance Criteria

  • Custom definition loads to QueryaTheme.
  • VS Code definition still loads.
  • Missing/deleted file returns failure.
  • No app crash on parse failure.

Tests

  • custom success;
  • VS Code success using existing fixture;
  • deleted file failure;
  • invalid file failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    registryTheme parser epic label: registrythemeTheming, colors, VS Code themes

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions