Skip to content

fix(theming): focused NumberBox/ComboBox text is black in dark theme - #24091

Merged
morning4coffe-dev merged 7 commits into
unoplatform:masterfrom
ajpinedam:dev/anpi/focused-input-dark-theme
Sep 14, 2026
Merged

morning4coffe-dev merged 7 commits into
unoplatform:masterfrom
ajpinedam:dev/anpi/focused-input-dark-theme

Conversation

@ajpinedam

@ajpinedam ajpinedam commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #24021

PR Type:

🐞 Bugfix

What changed? 🚀

On Skia, text typed into a focused NumberBox or editable ComboBox rendered black while the app was in dark theme, making it nearly unreadable.

Both templates carry (verbatim from current WinUI) a Focused visual state that sets ContentElement.RequestedTheme="Light" on the inner TextBox. In WinUI that is harmless; in Uno it exposed two distinct defects — though not one per control: the foreground-freeze defect affects both controls, while the setter-resolution defect affects only the editable ComboBox. NumberBox applies its focused foreground through ObjectAnimationUsingKeyFrames, whose keyframe value resolves under its own templated-parent theme and was already correct — so the freeze fix alone makes NumberBox pass, while ComboBox needs both fixes (confirmed by ablation of the hunks; thanks @MartinZikmund for measuring this).

1. Foreground freeze overrode an explicitly-set Foreground (both controls)

FrameworkElement.NotifyThemeChangedForInheritedProperties(freeze: true) froze the Light-theme DefaultTextForegroundThemeBrush (black) onto the boundary element and its children, even when that element already had a Foreground set locally, by style, or by animation.

WinUI (framework.cpp, NotifyThemeChangedForInheritedProperties) skips the entire freeze in that case — "there is nothing to do, because that value will be used". Uno only skipped the SetValue while still recording _themeForeground / _isForegroundFrozen, which then blocked the explicit value from cascading to children through DP inheritance. On Skia the typed text is the TextBoxView DisplayBlock, which inherits Foreground from ContentElement — so it picked up the frozen black brush. This corrupts the child display block regardless of how the focused foreground was applied, which is why it hits both controls.

Fix: early-return when the foreground precedence is above Inheritance. The bail clears only the stored _themeForeground brush an earlier walk may have left (Uno keeps it in a separate field, while WinUI shares the local Foreground slot, so only Uno can leak it to children) and leaves _isForegroundFrozen untouched — WinUI's bail is a pure cleanup jump that writes no freeze state, so the boundary keeps blocking cross-boundary Foreground inheritance.

2. VisualState setter {ThemeResource} re-resolved under its target's own theme (editable ComboBox only)

A {ThemeResource} inside a VisualState Setter is registered on the target element in Uno. When the same state also applied RequestedTheme="Light" to that target, the resulting theme walk re-resolved TextControlForegroundFocused under Light and produced a black brush.

In WinUI the resource reference lives on the Setter DO, which sits in the template's VisualStateGroups — outside the target's subtree — so it never resolves under the target's RequestedTheme.

Fix: DependencyObjectStore.GetVisualStateSetterResolutionTheme() returns the ambient theme surrounding the target, applied at the three resolution sites (UpdateThemeReference, InnerUpdateResourceBindingsUnsafe, ResourceResolver.ApplyVisualStateSetter). It is deliberately scoped to boundaries applied by the state itself (RequestedTheme at Animations precedence); a XAML-authored RequestedTheme keeps Uno's existing element-level theming semantics for setter targets.

Mid-walk, an ancestor's persisted theme is stale (it is persisted only after its subtree completes), so the ambient is read from the parent's in-flight walk theme when the parent is still processing a theme walk.

When the parent has no established per-object theme — the state of every element in an app that never switches theme at runtime, since only a theme walk persists per-object themes — the ambient now falls back to the application base theme (FrameworkTheming.GetBaseTheme()). ResolveOwnerTheme's owner-less fallback instead reads the requested-theme-for-subtree slot, which mid-boundary already carries the very Light theme being escaped, silently turning the escape into a no-op — so the fix did nothing in exactly the cold-start-dark scenario #24021 reports. Caught in review by @MartinZikmund. The fallback is UNO_HAS_ENHANCED_LIFECYCLE-only; native targets keep their existing behavior.

Behavior change

Theme resolution changes in two observable ways, both toward WinUI parity:

  • An element with an explicitly-set Foreground (local / style / animation) no longer has the theme's default foreground frozen over it — and no longer propagates that frozen default to its children — when it acts as a theme boundary.
  • A {ThemeResource} in a VisualState Setter now resolves under the ambient theme rather than the target's own RequestedTheme, only when that RequestedTheme was applied by a visual state.

Existing app code that (intentionally or not) relied on the frozen-default behaviour could see a different foreground on such elements. No public API changed.

Validation

  • Build: SamplesApp.Skia.Generic (Release, net10.0) — 0 warnings, 0 errors.
  • Runtime tests (Skia Desktop): Given_ElementTheme — 115 tests, 114 passed. The regression tests fail before their respective fixes and pass after:
    • When_NumberBox_Focused_In_Dark_Theme_Text_Is_Light (freeze fix)
    • When_Editable_ComboBox_Focused_In_Dark_Theme_Text_Is_Light (freeze + setter-resolution fixes)
    • When_Editable_ComboBox_Focused_In_Dark_Theme_Without_Theme_Walk_Text_Is_Light (base-theme fallback) — stages the never-theme-switched cold start (the exact [Skia] the input foreground of NumberBox or ComboBox is black at dark theme #24021 scenario) by clearing the per-object themes the harness's theme switch persists; on a build without the fallback it fails with the focused text at #E4000000 (black).
    • When_Editable_ComboBox_Focused_In_Dark_Theme_ContentElement_Foreground_Is_Light — platform-agnostic variant asserting the setter's direct target (ContentElement.Foreground, no Skia display-block dependency); it is also enabled for native WASM to cover the unguarded ApplyVisualStateSetter path there. Native runtime tests are excluded from PR CI by design, so it first executes there on the post-merge master branch build; Uno.UI.RuntimeTests.Wasm (and the changed Uno.UI sources under __WASM__) were compile-validated locally.
    • Every test carries a positive control asserting BorderElement.Background is the dark TextControlBackgroundFocused value (#B31E1E1E), proving the Focused state actually ran and resolved Dark — the Dark dictionary aliases all text-control foregrounds to the same light brush, so the foreground assert alone can't distinguish "resolved correctly" from "state never applied".
    • The single failure, When_Flyout_Closed_Target_Does_Not_Hold_Flyout, is a pre-existing GC/leak-sensitive test that fails identically on the unmodified branch — unrelated to this change.

Not yet measured

  • Native Android/iOS were not exercised beyond compilation (the class-level PlatformCondition already excludes them). Native WASM has direct coverage through the ContentElement test above, but native runtime tests only run on branch builds — first execution is master's post-merge build; Screenshots Compare Test Run results remain the broader check.
  • No performance measurement was taken. The added work is an extra precedence check on the setter path and an early return on the freeze path, so no regression is expected, but it has not been benchmarked.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable)
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features) — no documented behaviour changes; the fix aligns with existing WinUI-documented semantics
  • 🖼️ Validated PR Screenshots Compare Test Run results. — to be validated once the CI run completes
  • ❗ Contains NO breaking changes — see the Behavior change section above; theme resolution is observably different in two cases, both toward WinUI parity
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

Copilot AI lite review requested due to automatic review settings August 15, 2026 19:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a Skia dark-theme readability regression where focused NumberBox and editable ComboBox text could render black due to theme-boundary behavior and VisualState setter {ThemeResource} resolution.

Changes:

  • Adjusts theme-foreground “freeze” logic at FrameworkElement theme boundaries to avoid freezing a theme default over an explicitly-set Foreground.
  • Resolves {ThemeResource} values applied via VisualState setters using the ambient theme outside a state-applied RequestedTheme boundary (improving WinUI parity).
  • Adds Skia runtime tests to validate focused text input remains light in dark theme for NumberBox and editable ComboBox.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/Uno.UI/UI/Xaml/ResourceResolver.cs Uses the VisualState-setter ambient theme (when applicable) to scope theme resource resolution.
src/Uno.UI/UI/Xaml/FrameworkElement.Theming.cs Fixes foreground freeze behavior at theme boundaries when Foreground is explicitly set.
src/Uno.UI/UI/Xaml/DependencyObjectStore.Theming.cs Introduces ambient theme selection for VisualState setter {ThemeResource} resolution and applies it at key resolution sites.
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_ElementTheme.cs Adds Skia-focused regression tests for dark-theme text input foreground in NumberBox and editable ComboBox.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 227990 has failed on Uno.UI - CI.

@MartinZikmund

Copy link
Copy Markdown
Member

Reviewed this against the WinUI C++ sources and against a native WinUI oracle app, and ran an ablation of the two hunks on Skia Desktop. The diagnosis is right and the fix works on the tested path — but I think there's one defect worth fixing before merge, plus a couple of smaller notes.

The core premise checks out

I built a small WinUI 3 app (WinAppSDK 2.1.3) to measure what WinUI actually resolves, since the claim ("the boundary applies but the {ThemeResource} still resolves Dark") is surprising enough to be worth measuring rather than reasoning about. Dark page, control focused:

Control ContentElement.ActualTheme ContentElement.Foreground Focused border bg
TextBox Dark #FFFFFFFF #B31E1E1E
NumberBox Light #FFFFFFFF #B31E1E1E
ComboBox (editable) Light #FFFFFFFF #B31E1E1E

So WinUI does apply the RequestedTheme="Light" boundary and still resolves the setter's {ThemeResource} to the Dark value. With this PR applied, Uno Platform reproduces all nine of those values exactly.

Blocking: the ComboBox half is a no-op when the app never switches theme

GetVisualStateSetterResolutionTheme() ends in ThemeResolution.ResolveOwnerTheme(Parent). When the parent's stored theme is Theme.None, ThemeResolution.cs falls back to ResourceDictionary.GetActiveBaseTheme(), which reads the core requested-theme-for-subtree slot — the same slot the boundary walk just loaded with Light. It returns the theme it's trying to escape. Silently: no log, no assert.

And Theme.None is the default for the whole tree in any app that never performs a runtime theme switch. I probed a freshly loaded tree with no theme switch:

inner=None mid=None root=None | ContentPresenter=None | Grid=None | WindowChrome=None | XamlIslandRoot=None

_theme is assigned in exactly one place (DependencyObjectStore.Theming.cs, inside the theme walk); EstablishThemeOnEnterCore only propagates a parent theme that is already non-None.

So on an app that simply starts in dark — which is what #24021 reports — the ComboBox half of this fix does nothing. The tests here can't see it because ThemeHelper.UseApplicationDarkTheme performs a real application theme switch, whose walk seeds _theme tree-wide; they only ever exercise the safe non-None path.

Suggested fix: when the parent's stored theme is None, fall back to the application base theme (CoreServices.Instance.Theming.GetBaseTheme()) rather than the ambient slot, and add a regression test that never switches the application theme.

Caveat on my own evidence: I verified each link of that chain individually (the probe above, plus reading the fallback). I did not stage a full cold-start dark app end-to-end — the runtime-test harness pins its frame to Light, which is exactly what the new test has to work around.

The two defects aren't one-per-control

Ablation on Skia Desktop, each configuration built and run:

Configuration NumberBox ComboBox
baseline FAIL FAIL
+ freeze hunk only PASS FAIL
+ setter hunks only FAIL FAIL
+ both PASS PASS

The freeze defect hits both controls (it corrupts the child display block, not ContentElement itself). The setter-resolution defect hits only ComboBox — NumberBox uses ObjectAnimationUsingKeyFrames, whose keyframe object resolves under its own templated-parent theme and is already correct. That's why ComboBox needs both hunks and the setter hunk alone fixes nothing. Worth correcting in the description, since it changes what each hunk is load-bearing for.

Smaller notes

The assertions can pass for the wrong reason. (R+G+B)/3 > 200 can't distinguish "focused state resolved correctly" from "focused state never applied at all", because in the Dark dictionary TextControlForeground, ...PointerOver and ...Focused all alias TextFillColorPrimaryBrush. A positive control fixes it — asserting BorderElement.Background is #B31E1E1E proves the Focused state actually ran before you assert anything about the foreground.

_isForegroundFrozen = false on the bail. WinUI's bail is a pure goto Cleanup that writes no freeze state at all. Clearing _themeForeground is a justified divergence (WinUI's freeze brush and the local Foreground share one storage slot, so a stale freeze can't leak there, whereas Uno Platform's separate field can). Clearing the flag as well also drops the theme-boundary inheritance block, which WinUI never does.

Platform condition. RuntimeTestPlatforms.Skia already includes SkiaWasm, so that's covered — but ResourceResolver.ApplyVisualStateSetter isn't preprocessor-guarded, so the changed code also runs on the native WASM target, untested.

On the precedence gate

GetCurrentHighestValuePrecedence(RequestedThemeProperty) == Animations has no WinUI counterpart — there's no BaseValueSource check anywhere in WinUI's RequestedTheme path. WinUI gets the right answer purely on the setter side: a VSM setter's {ThemeResource} becomes a live binding on the CSetter itself, resolved under the setter's own theme, and the target receives an already-resolved value. The gate is a proxy that happens to coincide for these two controls.

That's a follow-up, not a merge blocker — this PR strictly narrows a pre-existing divergence rather than widening it. FWIW I've since pushed a setter-side port on dev/mazi/notifyanims (#23491) that matches the oracle without any precedence heuristic, so if this lands first the gate can just be deleted when that merges. Happy either way — landing this now fixes users sooner.

@mergify

mergify Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

Copilot AI review requested due to automatic review settings August 25, 2026 02:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@unodevops

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings August 26, 2026 02:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@unodevops

Copy link
Copy Markdown
Contributor

@ajpinedam

Copy link
Copy Markdown
Contributor Author

Thanks @MartinZikmund — great catch on the blocker, and the ablation was spot on. All addressed:

  • Blocker (44f0bf3): with no established parent theme, GetVisualStateSetterResolutionTheme now falls back to FrameworkTheming.GetBaseTheme() instead of the ambient slot. 2832337 adds the regression test staging the never-theme-switched cold start; without the fix it fails with the focused text at #E4000000.
  • Smaller notes (80add0a, a3c256b): the bail now clears only _themeForeground and keeps the freeze flag; every test carries the #B31E1E1E BorderElement positive control; and a platform-agnostic ContentElement.Foreground variant is enabled for native WASM (native runtime tests only run on branch builds, so it first executes post-merge — the Wasm head compiles clean locally).
  • PR description corrected: freeze defect = both controls, setter defect = editable ComboBox only.

Agreed on the precedence gate — happy to delete it once #23491 lands.

@MartinZikmund MartinZikmund mentioned this pull request Sep 7, 2026
5 tasks

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The foreground freeze now follows WinUI's explicit/local/style/animated-value bailout, instead of retaining a competing theme-default brush for descendants. Resolving the state setter outside the RequestedTheme boundary introduced by that same state is scoped to animation-precedence boundaries, preserving authored element-theme behavior. The focused-state background assertion is a useful positive control beyond merely observing light text. Source approval only; the older DependencyObjectStore-based head still needs its base conflicts integrated.

@ajpinedam
ajpinedam force-pushed the dev/anpi/focused-input-dark-theme branch from a3c256b to ca5c81f Compare September 10, 2026 12:49
Copilot AI review requested due to automatic review settings September 10, 2026 12:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

It changes core theming/resource-resolution behavior with broad potential impact beyond the targeted controls and warrants final human validation.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@unodevops

Copy link
Copy Markdown
Contributor

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rechecked the conflict-resolution follow-up against the previously approved patch. The substantive adaptation is to master's DependencyObjectStore-to-DependencyObject consolidation: the parent walk-theme and established-theme checks now use the parent DependencyObject directly, and ResourceResolver calls the helper on the target directly. ActualInstance is now the object itself, so these preserve the prior ambient-theme fallback and foreground-precedence behavior. The focused NumberBox/ComboBox regression cases are unchanged. Approval renewed for this head.

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 232951 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ClipboardTests.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DisplayInformation.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Focus_FocusVisual_Properties.png-dark
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • ImageIconPage.png-dark
  • skia-windows-screenshots: 2310 changed over 2408

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png-dark
    • AndroidWindowInsets.png
    • AppBarButtonWithIconTest.png
    • AppBarToggleButtonTest.png-dark
    • ApplicationViewMode.png
    • ApplicationViewSizing.png
    • AppWindowFeatures.png
    • AppWindowPositionAndSize.png-dark
    • AppWindowTitleBar Properties.png
    • ArcSegment.png-dark
    • Attributed_text_FontSize_Changing.png-dark
    • Attributed_text_Supserscript.png-dark
    • AuthenticationBroker_Demo.png
    • AutoBorderStretchwithleftmargin.png
    • AutomationPropertiesExtensions_Role.png-dark
    • AutomationProperties_Name.png
    • AutoSizedTopLeft.png-dark
    • AutoSuggestBoxChosenSuggestion.png-dark
    • AutoSizedTopLeft.png
    • AutoSuggestBoxChosenSuggestion.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 232951 has failed on Uno.UI - CI.

@morning4coffe-dev
morning4coffe-dev merged commit dc2963d into unoplatform:master Sep 14, 2026
52 checks passed
@agneszitte

Copy link
Copy Markdown
Member

@Mergifyio backport servicing/6.8 release/stable/6.7

@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

backport servicing/6.8 release/stable/6.7

✅ Backports have been created

Details

agneszitte added a commit that referenced this pull request Oct 27, 2026
…r-24091

fix(theming): focused NumberBox/ComboBox text is black in dark theme (backport #24091)
agneszitte added a commit that referenced this pull request Oct 27, 2026
…6.7/pr-24091

fix(theming): focused NumberBox/ComboBox text is black in dark theme (backport #24091)
Xiaoy312 added a commit that referenced this pull request Oct 28, 2026
…t-6.8

fix(theming): Keep focused NumberBox/ComboBox text readable in dark theme (6.x port of #24091)
agneszitte added a commit that referenced this pull request Oct 28, 2026
…6.7/pr-25789

fix(theming): Keep focused NumberBox/ComboBox text readable in dark theme (6.x port of #24091) (backport #25789)
ajpinedam pushed a commit to ajpinedam/uno that referenced this pull request Oct 28, 2026
…orm#25764), 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 unoplatform#24091 needs its own change, validated by CI.

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

Related to unoplatform#24021

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
…orm#25765), 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,
the same errors as 6.8's build 241913 (same code)). A 6.x port of unoplatform#24091 needs its own change, validated by CI.

This reverts commit eaefbb6, reversing
changes made to 8fa10d7.

Related to unoplatform#24021

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.

[Skia] the input foreground of NumberBox or ComboBox is black at dark theme

8 participants