Repository navigation
fix(theming): Keep focused NumberBox/ComboBox text readable in dark theme (6.x port of #24091) (backport #25789) - #25799
Merged
agneszitte merged 2 commits intoOct 28, 2026
Conversation
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)
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
NumberBoxor editableComboBoxrendered black in dark theme. Two commits: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 inGiven_ElementTheme.fix(theming): Reach theming state via the store on 6.x: on master,DependencyObjectis a class that holds the theming members. On 6.x it is still an interface and those members live onDependencyObjectStore, so the new code reaches them throughIDependencyObjectStoreProvider.Store:GetVisualStateSetterResolutionThemereads the parent'sIsProcessingThemeWalk,WalkThemeandGetTheme()from the parent's store.ResourceResolver.ApplyVisualStateSettercalls the helper on the setter target's store.4 lines changed; same behavior as master's fix.
Validation
src/Uno.UI/Uno.UI.Skia.csprojandsrc/Uno.UI/Uno.UI.Wasm.csproj(net10.0,UnoFastDevBuild=true) both succeed. Those are two of the projects that failed with CS1061/CS0117 after fix(theming): focused NumberBox/ComboBox text is black in dark theme (backport #24091) #25764.🤖 Generated with Claude Code
This is an automatic backport of pull request #25789 done by [Mergify](https://mergify.com).