Skip to content

Plugins: pick dark controls from ThemeColors.IsDark - #345

Merged
niksedk merged 1 commit into
mainfrom
claude/plugins-theme-isdark
Nov 5, 2026
Merged

niksedk merged 1 commit into
mainfrom
claude/plugins-theme-isdark

Conversation

@niksedk

@niksedk niksedk commented Nov 5, 2026

Copy link
Copy Markdown
Member

PluginApp chose the light/dark variant only from the theme name, so only a theme named exactly "Dark" got dark controls. Dark themes like Nord and Cinema, and "System" on a dark OS, got a dark window (from ThemeColors) with light Fluent checkboxes, buttons and radio buttons.

  • PluginApp.ResolveThemeVariant(PluginRequest): ThemeColors.IsDark wins. SE computes it with UiTheme.IsDarkThemeEnabled(). Older SE versions without ThemeColors still fall back to the name. The string overload is kept.
  • TypewriterEffect has its own App, so it gets the same change.
  • Tests in AmericanToBritish.Tests/PluginAppTests.cs, because Plugin-Shared has no test project of its own.

Every plugin built on PluginApp picks this up on its next release.

🤖 Generated with Claude Code

The variant came from the theme name only, so dark themes not named
"Dark" (Nord, Cinema, ...) and "System" on a dark OS got light Fluent
controls on a dark window. IsDark now wins; older SE versions without
ThemeColors still fall back to the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@niksedk
niksedk merged commit b81da64 into main Nov 5, 2026
145 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant