Skip to content

[Feature Request] Follow the app's theme automatically when a matching preview theme exists #167

Description

@akurach

Since #46, the preview ships 10 built-in themes selectable via extension.markeditPreview.themeName. However, the preview theme is static: switching the app/editor theme leaves the preview on whatever themeName says, so Editor and Preview modes look mismatched unless the user manually keeps the setting in sync.

Now that the theme infrastructure exists, would you consider a lightweight auto-follow?

  • When the app's current theme has a same-named (or explicitly mapped) preview theme — e.g. Dracula, Solarized, Rose Pine, Xcode, Synthwave '84, Winter Is Coming — pick it automatically.
  • Fall back to the current themeName behavior when there is no match.
  • Perhaps behind an opt-in like "themeName": "auto", so existing configurations are unaffected.

Unlike #13 (which predated the built-in themes and would have required porting every app theme), this is just a name-mapping between two lists that already exist. Happy to contribute a PR if the approach sounds acceptable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions