Skip to content

fix(theming): Keep focused NumberBox/ComboBox text readable in dark theme (6.x port of #24091) (backport #25789) - #25799

Merged
agneszitte merged 2 commits into
release/stable/6.7from
mergify/bp/release/stable/6.7/pr-25789
Oct 28, 2026
Merged

agneszitte merged 2 commits into
release/stable/6.7from
mergify/bp/release/stable/6.7/pr-25789

Conversation

@mergify

@mergify mergify Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: Related to #24021

Manual 6.x port of #24091 to servicing/6.8. It replaces the straight backport #25764, which was reverted by #25787 because it didn't build on 6.x.

PR Type:

🐞 Bugfix

What changed? 🚀

On Skia, text typed into a focused NumberBox or editable ComboBox rendered black in dark theme. Two commits:

  1. fix(theming): Re-apply the #24091 dark focused text fix: the master fix exactly as it was cherry-picked in fix(theming): focused NumberBox/ComboBox text is black in dark theme (backport #24091) #25764, including the runtime tests in Given_ElementTheme.

  2. fix(theming): Reach theming state via the store on 6.x: on master, DependencyObject is a class that holds the theming members. On 6.x it is still an interface and those members live on DependencyObjectStore, so the new code reaches them through IDependencyObjectStoreProvider.Store:

    • GetVisualStateSetterResolutionTheme reads the parent's IsProcessingThemeWalk, WalkTheme and GetTheme() from the parent's store.
    • ResourceResolver.ApplyVisualStateSetter calls the helper on the setter target's store.

    4 lines changed; same behavior as master's fix.

Validation

🤖 Generated with Claude Code


This is an automatic backport of pull request #25789 done by [Mergify](https://mergify.com).

agneszitte and others added 2 commits October 28, 2026 20:45
Brings back the backport of #24091
exactly as it was on master: keep focused NumberBox / editable ComboBox
text readable in dark theme. It was first backported in
#25764 and reverted by
#25787 because it did not build.

This commit alone still does not build on 6.x: on master DependencyObject
is a class, on 6.x the theming state lives on DependencyObjectStore. The
next commit adapts it.

Related to #24021

Co-authored-by: Andres Pineda <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 33eb367)
On master, DependencyObject is a class that holds the theming members.
On 6.x it is still an interface, and those members live on
DependencyObjectStore, so reach them through
IDependencyObjectStoreProvider.Store:

- GetVisualStateSetterResolutionTheme reads the parent's
  IsProcessingThemeWalk, WalkTheme and GetTheme() from the parent's store.
- ResourceResolver.ApplyVisualStateSetter calls the helper on the setter
  target's store.

Same behavior as master's fix.

Related to #24021

Co-authored-by: Andres Pineda <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit bf0700f)
@agneszitte
agneszitte merged commit a404643 into release/stable/6.7 Oct 28, 2026
10 of 13 checks passed
@agneszitte
agneszitte deleted the mergify/bp/release/stable/6.7/pr-25789 branch October 28, 2026 20:46
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