Skip to content

revert: Back out the dark-theme NumberBox/ComboBox backport, it doesn't build on 6.x (6.8) - #25787

Merged
agneszitte merged 1 commit into
servicing/6.8from
dev/agzi/revert-25764-dark-theme-6.8
Oct 28, 2026
Merged

agneszitte merged 1 commit into
servicing/6.8from
dev/agzi/revert-25764-dark-theme-6.8

Conversation

@agneszitte

Copy link
Copy Markdown
Member

GitHub Issue: Related to #24021

Reverts #25764 (backport of #24091 to servicing/6.8).

PR Type:

🐞 Bugfix (build break)

What changed? 🚀

#25764 doesn't compile on 6.x. The fix adds members to the DependencyObject class (GetTheme, WalkTheme, IsProcessingThemeWalk, GetVisualStateSetterResolutionTheme), but on 6.x DependencyObject is still an interface. The cherry-pick applied cleanly as text, so the break only showed in CI: build 241913 fails in ResourceResolver.cs and DependencyObjectStore.Theming.cs (CS1061/CS0117) on every head that builds Uno.UI.

This reverts it so the branch builds and publishes again. A proper 6.x port of #24091 can follow, validated by CI before merging.

🤖 Generated with Claude Code

… it doesn't build on 6.x

The cherry-picked fix adds members to the DependencyObject class (GetTheme,
WalkTheme, IsProcessingThemeWalk, GetVisualStateSetterResolutionTheme). On
6.x DependencyObject is still an interface, so Uno.UI no longer compiles
(CS1061/CS0117 in ResourceResolver.cs and DependencyObjectStore.Theming.cs,
build 241913). A 6.x port of #24091 needs its own change, validated by CI.

This reverts commit 3001f20, reversing
changes made to eb72d28.

Related to #24021

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @agneszitte's task in 1m 29s —— View job


Review complete ✅

Verdict: ship — no inline findings.

Summary

This is a clean, mechanical git revert of #25764 (confirmed by the commit trailer This reverts commit 3001f20...), and the stated root cause checks out:

  • GetTheme() and the removed GetVisualStateSetterResolutionTheme() were defined on DependencyObjectStore/UIElement only. The reverted code called them through variables typed as DependencyObject (target?.GetVisualStateSetterResolutionTheme() in ResourceResolver.cs, (Parent as DependencyObject)?.GetTheme() in DependencyObjectStore.Theming.cs) — on 6.x, DependencyObject is still an interface (Android/iOS), so those calls don't resolve, matching the reported CS1061/CS0117 failures.
  • I grepped the full tree for GetVisualStateSetterResolutionTheme, SetterBindingPath usage tied to the backport, and found zero dangling references post-revert — the three production files (DependencyObjectStore.Theming.cs, FrameworkElement.Theming.cs, ResourceResolver.cs) are restored to their pre-fix(theming): focused NumberBox/ComboBox text is black in dark theme (backport #24091) #25764 state with no orphaned branches (the if/else if → if restructuring in DependencyObjectStore.Theming.cs and the skipSetValue removal in FrameworkElement.Theming.cs are both symmetric reverts).
  • The deleted test file content (Given_ElementTheme.cs) is precisely the 173-line #region/#endregion block added by fix(theming): focused NumberBox/ComboBox text is black in dark theme (backport #24091) #25764 — it closes cleanly against the pre-existing Issue475ThemedDO class with no leftover braces, and removing it is correct since the behavior it tested no longer exists on this branch.
  • IsProcessingThemeWalk, WalkTheme, GetTheme() on DependencyObjectStore/UIElement themselves pre-date the backport and are untouched — only the interface-leaking call sites were reverted.
  • Commit message follows Conventional Commits (revert: ...), issue is referenced, scope is minimal (not a drive-by cleanup).

Note: I validated this by diff/grep inspection only — I did not run a full dotnet build against Uno.UI-Skia-only.slnf/mobile targets in this sandbox (no cross-targeting override configured, and a full restore+build would exceed a reasonable review window). Given the revert is an exact, symmetric undo of the single commit identified as the build break, and no dangling references to the removed members remain anywhere in the tree, I'm confident it restores compilation — but recommend confirming green CI (equivalent to build 241913, now passing) before merge rather than relying solely on this review.

No cross-cutting or architectural concerns — this is purely a build-break mitigation, and the PR correctly defers the real fix to a follow-up 6.x-specific port of #24091.

@agneszitte
agneszitte merged commit 3afda99 into servicing/6.8 Oct 28, 2026
8 of 13 checks passed
@agneszitte
agneszitte deleted the dev/agzi/revert-25764-dark-theme-6.8 branch October 28, 2026 04:41
ajpinedam added a commit to ajpinedam/uno that referenced this pull request Oct 28, 2026
Brings back the backport of unoplatform#24091
exactly as it was on master: keep focused NumberBox / editable ComboBox
text readable in dark theme. It was first backported in
unoplatform#25764 and reverted by
unoplatform#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 unoplatform#24021

Co-authored-by: Andres Pineda <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ramezgerges pushed a commit to ramezgerges/uno that referenced this pull request Nov 2, 2026
Brings back the backport of unoplatform#24091
exactly as it was on master: keep focused NumberBox / editable ComboBox
text readable in dark theme. It was first backported in
unoplatform#25764 and reverted by
unoplatform#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 unoplatform#24021

Co-authored-by: Andres Pineda <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 33eb367)
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