Repository navigation
fix(theming): Keep focused NumberBox/ComboBox text readable in dark theme (6.x port of #24091) - #25789
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]>
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]>
|
Claude finished @agneszitte's task in 3m 55s —— View job Claude's Review
Verdict: ✅ No blocking issues foundFindings by severity: 0 critical, 0 major, 0 minor. No inline comments posted. What was checked
CaveatI verified the ported logic by static tracing against 6.x's current API surface (compiles structurally, matches documented intent) rather than by diffing directly against master's |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
@Mergifyio backport release/stable/6.7 |
✅ Backports have been createdDetails
|
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