Skip to content

fix: remove Editor.UseThemeBackground (removed upstream in Editor#134)#136

Merged
tig merged 4 commits into
developfrom
fix/remove-use-theme-background
May 17, 2026
Merged

fix: remove Editor.UseThemeBackground (removed upstream in Editor#134)#136
tig merged 4 commits into
developfrom
fix/remove-use-theme-background

Conversation

@tig
Copy link
Copy Markdown
Member

@tig tig commented May 17, 2026

Summary

Editor's syntax-theme phase 2 (gui-cs/Editor#134) removed \UseThemeBackground\ from the \Editor\ class — themes now control backgrounds directly via \VisualRole\ machinery. This broke both CI workflows on main:

Changes

Removes all \Editor.UseThemeBackground\ references:

  • EditorClet: init property, \optUseThemeBg\ toggle variable, View → Use Theme Background menu item
  • EditorSettings: property, managed key, save entry
  • EditorSettingsTests: assertions updated (8 → 7 keys)

\Markdown.UseThemeBackground\ (a TG \View\ property, not from Editor) is unaffected and remains in \MarkdownClet\ and \MarkdownHelpRenderer.

Doc-update gate

  • No spec/runbook impact — this is a removal of a setting that no longer exists upstream.

Closes #131

tig and others added 3 commits May 16, 2026 11:30
…134)

Editor's syntax-theme phase 2 (gui-cs/Editor#134) removed
UseThemeBackground from the Editor class — themes now control
backgrounds directly via VisualRoles.

Remove all Editor.UseThemeBackground references:
- EditorClet: init property, optUseThemeBg toggle, View menu item
- EditorSettings: property, managed key, save entry
- EditorSettingsTests: assertions updated (8 → 7 keys)

Markdown.UseThemeBackground (a TG View property) is unaffected.

Fixes CI build failures on main.
Closes #131

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adopt Editor PR gui-cs/Editor#134 (syntax-theme phase 2):

EditorClet:
- Add Theme DropDownList to status bar (selects ThemeManager.Theme)
- Markdown preview auto-selects TextMate theme based on terminal
  background instead of hard-coding DarkPlus

ConfigClet:
- Add Theme DropDownList to status bar
- Add ViewportSettings (scrollbars)
- Set BorderStyle = LineStyle.None for consistency with EditorClet

The Editor class now auto-subscribes to ThemeManager.ThemeChanged
internally, so changing the theme triggers proper repaint with
VisualRole-driven syntax colors automatically.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tig tig force-pushed the fix/remove-use-theme-background branch from 31d55e1 to a2ddc7c Compare May 17, 2026 07:09
The wildcard 2.1.1-develop.* was resolving to .163 which is a bad
build without the VisualRole.Code* tokens that Editor PR #134 relies
on. Pin to .98 to match Editor's Directory.Build.props.

Also remove obsolete GetThemeForBackground calls (now errors with
TreatWarningsAsErrors) — syntax colors are resolved via VisualRoles.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tig tig merged commit 896c505 into develop May 17, 2026
9 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.

clet config colors are unreadable

1 participant