Skip to content

feat: Support for Accent color - #22851

Merged
MartinZikmund merged 40 commits into
masterfrom
dev/mazi/accentcolor
Nov 22, 2026
Merged

MartinZikmund merged 40 commits into
masterfrom
dev/mazi/accentcolor

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Mar 18, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: closes #4444

PR Type:

✨ Feature

What changed? 🚀

Uno Platform used a hardcoded blue for all accent resources, regardless of the OS accent color. This PR makes the accent follow the operating system, like WinUI.

OS accent sources

Platform Source Live updates
Windows (Skia, Win32 host) The OS accent palette from the registry, all seven shades ✔
macOS (Skia) System Settings accent color ✔
Android Material You dynamic color (Android 12+) Read at startup
Linux (Skia, X11) XDG Settings portal, in the stacked #24424 ✔
iOS, WebAssembly Not available yet, default palette ✖

Resources, aligned with WinUI's FrameworkTheming::RebuildColorAndBrushResources

  • SystemAccentColor, SystemAccentColorLight1-3 / Dark1-3, SystemColorControlAccentColor and SystemColorControlAccentBrush follow the palette, as do SystemListAccentLow/Medium/HighColor (the accent with alpha 0x66 / 0x99 / 0xB2).
  • SystemColorHighlightColor is not touched: WinUI sources it from the system highlight color, independently of the accent.
  • UISettings.GetColorValue(UIColorType.Accent*) returns the same palette, and ColorValuesChanged fires when it changes. {ThemeResource} references update live; as in WinUI, {StaticResource} references keep their resolved value.

Shades derived like Windows 11

When a platform exposes only one accent color, the six shades are derived with the same algorithm Windows 11 uses. It was validated against palettes captured from Windows (UISettings.GetColorValue) for 1,326 accent colors, 9,282 of 9,282 shades matching. It was also checked against the resources a blank WinUI 3 app resolves on 191 accents. The unit tests use captured Windows values as expectations.

New FeatureConfiguration.AccentColor options

  • OverrideAccentColor: forces an app accent. Set it to null to follow the OS again.
  • NormalizeAccentColor (default false): Windows adjusts the lightness of a color picked in its Settings before deriving shades. By default, Uno Platform keeps the provided accent exactly. Set this to true to reproduce the Windows adjustment.

Tests

  • Unit: Given_AccentColorPalette (captured Windows palettes, swatch colors, normalization, ordered shades).
  • Runtime: Given_UISettings_Accent (override updates GetColorValue and resources, highlight independence, normalization toggle).
  • Given_Hyperlink: the tests pin the default palette, mirroring WinUI's test accent override, which returns fixed shades.
  • Sample: SystemAccentColorSample.

Stacked on top: #24424 (Linux/X11 accent) and #24428 (docs).

PR Checklist ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_017LK9RwksucipQ9WtcSZ7xQ

Copilot AI lite review requested due to automatic review settings March 18, 2026 14:17
@github-actions github-actions Bot added platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia labels Mar 18, 2026

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

Adds OS accent color support to Uno’s theming pipeline by introducing a cross-platform accent palette helper and wiring it into resource dictionaries so ThemeResource accent keys can resolve dynamically at runtime.

Changes:

  • Introduces AccentColorHelper + AccentColorPalette with platform implementations (WASM CSS AccentColor, Android 12+ dynamic color, Skia extensibility).
  • Injects accent colors into SystemResources.xaml theme dictionaries via AccentColorResourceUpdater, and switches key brush usages to ThemeResource for dynamic updates.
  • Exposes a runtime override hook via FeatureConfiguration.AccentColor.OverrideAccentColor and integrates change notifications into Application/UISettings.

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/Uno.UWP/ts/Windows/Helpers/Theming/AccentColorHelper.ts WASM-side JS helper to read CSS AccentColor and observe changes (best-effort via media query).
src/Uno.UWP/js/Uno.Wasm.d.ts Adds TS declaration for Uno.Helpers.Theming.AccentColorHelper.
src/Uno.UWP/UI/ViewManagement/UISettings.cs Routes UIColorType.Accent* to the new AccentColorHelper palette instead of hardcoded constants.
src/Uno.UWP/Helpers/Theming/IAccentColorExtension.skia.cs Defines Skia extensibility contract for OS accent palette + change notifications.
src/Uno.UWP/Helpers/Theming/AccentColorPalette.cs Adds a 7-color accent palette model + default palette + derivation from a single accent color.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.wasm.cs WASM platform implementation to retrieve/observe accent via JSImport + JS helper.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.skia.cs Skia implementation using ApiExtensibility and IAccentColorExtension.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.others.cs Stubbed platform implementation for unit tests / reference builds.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.cs Core helper: caching, override support, refresh + change event plumbing.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.UIKit.cs UIKit stub returning no OS accent palette.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.Interop.wasm.cs JSImport declarations for calling into the WASM JS helper.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.Android.cs Android 12+ accent retrieval via system dynamic color resources.
src/Uno.UI/UI/Xaml/Style/Generic/SystemResources.xaml Switches several accent usages to ThemeResource so accent updates can flow dynamically.
src/Uno.UI/UI/Xaml/Application.cs Subscribes to accent changes and triggers resource + UISettings updates.
src/Uno.UI/UI/Xaml/AccentColorResourceUpdater.cs New helper that injects current accent palette values into system theme dictionaries.
src/Uno.UI/FeatureConfiguration.cs Adds FeatureConfiguration.AccentColor.OverrideAccentColor to override the accent at runtime.
src/Uno.UI.Runtime.Skia.Win32/Hosting/Win32Host.cs Registers the Win32 Skia IAccentColorExtension implementation.
src/Uno.UI.Runtime.Skia.Win32/Helpers/Theming/Win32AccentColorExtension.cs Win32 implementation reading AccentPalette from registry + watching for registry changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Uno.UI/FeatureConfiguration.cs Resolved
@unodevops

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added the platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform label Mar 18, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 202349 found UI Test snapshots differences: android-28-net9: 102, android-28-net9-Snap: 70, ios: 17, ios-Snap: 83, skia-linux-screenshots: 53, skia-windows-screenshots: 128, wasm: 129, wasm-automated-net10.0-WinUI-Benchmarks-automated: 0, wasm-automated-net10.0-WinUI-Default-automated: 112, wasm-automated-net10.0-WinUI-RuntimeTests-0: 0, wasm-automated-net10.0-WinUI-RuntimeTests-1: 0, wasm-automated-net10.0-WinUI-RuntimeTests-2: 0

Details
  • android-28-net9: 102 changed over 758

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Button_IsEnabled_Validation_Uno_UI_Samples_Content_UITests_ButtonTestsControl_Button_IsEnabled_Automated
    • Detereminate_ProgressRing_Validation50_[#FF0000_#008000_#008000_#FF0000]_Progress-Ring-Value-50
    • FocusManager_GetFocusedElement_Border_Validation_FocusManager_-_GetFocusedElement_-_Border_-_2_-_After_Selection
    • FocusManager_GetFocusedElement_Border_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_Button_LostFocus_Validation_FocusManager_-_LostFocus_-_Button_-_2_-_Click_outside
    • FocusManager_GetFocusedElement_ComboBox_Validation_FocusManager_-_GetFocusedElement_-_ComboBox_-_2_-_After_Selection
    • FocusManager_GetFocusedElement_Button_LostFocus_Validation_FocusManager_-_LostFocus_-_Button_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_Border_Validation_FocusManager_-_GetFocusedElement_-_Border_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_ComboBox_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_Button_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_Image_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_Image_Validation_FocusManager_-_GetFocusedElement_-_Image_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_ComboBox_LostFocus_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_Grid_Validation_FocusManager_-_GetFocusedElement_-_Grid_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_CheckBox_LostFocus_Validation_FocusManager_-_LostFocus_-_CheckBox_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_HyperlinkButton_LostFocus_Validation_FocusManager_-_LostFocus_-_HyperlinkButton_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_TextBoxMultiLine_Validation_FocusManager_-_GetFocusedElement_-_TextBoxMultiLine_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_Image_Validation_FocusManager_-_GetFocusedElement_-_Image_-_2_-_After_Selection
    • FocusManager_GetFocusedElement_ComboBox_Validation_FocusManager_-_GetFocusedElement_-_ComboBox_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_TextBoxMultiLine_LostFocus_Validation_FocusManager_-_LostFocus_-_TextBoxMultiLine_-_2_-_Click_outside
  • android-28-net9-Snap: 70 changed over 1067

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Scrolling_MUXControlsTestApp_ScrollViewBlankPage_MUXControlsTestApp_ScrollViewBlankPage
    • Scrolling_MUXControlsTestApp_ScrollViewBringIntoViewPage_MUXControlsTestApp_ScrollViewBringIntoViewPage
    • Scrolling_MUXControlsTestApp_ScrollViewDynamicPage_MUXControlsTestApp_ScrollViewDynamicPage
    • Automation_Accessibility_ScreenReader_UITests_Shared_Windows_UI_Xaml_Automation_AccessibilityScreenReaderPage
    • Buttons_Button_IsEnabled_Automated_Uno_UI_Samples_Content_UITests_ButtonTestsControl_Button_IsEnabled_Automated
    • Default_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected
    • Flyouts_MenuFlyout_Simple_Uno_UI_Samples_Content_UITests_MenuFlyout_MenuFlyout_Simple
    • Gesture_Recognizer_Pointer_Events_test_bench_UITests_Shared_Windows_UI_Input_GestureRecognizer_PointersEvents
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_BitmapImage_vs_SvgImageSource_UITests_Windows_UI_Xaml_Controls_ImageTests_BitmapImage_vs_SvgImageSource
    • Buttons_HyperlinkButton_IsEnabled_Automated_Uno_UI_Samples_Content_UITests_ButtonTestsControl_HyperlinkButton_IsEnabled_Automated
    • Focus_FocusManagerTest_Uno_UI_Samples_Content_UITests_FocusTests_FocusManagerTest
    • TabView_MUXControlsTestApp_TabViewPage_MUXControlsTestApp_TabViewPage
    • TeachingTip_UITests_Microsoft_UI_Xaml_Controls_TeachingTipTests_TeachingTipPage_UITests_Microsoft_UI_Xaml_Controls_TeachingTipTests_TeachingTipPage
    • CommandBarFlyout_MUXControlsTestApp_CommandBarFlyoutPage_MUXControlsTestApp_CommandBarFlyoutPage
    • Focus_GetFocus_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • Gesture_Recognizer_UITests_Shared_Windows_UI_Input_GestureRecognizerTests_Manipulation_Basics_UITests_Shared_Windows_UI_Input_GestureRecognizerTests_Manipulation_Basics
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_Basic_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_Basic
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_FromMsAppData_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_FromMsAppData
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_FromStream_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_FromStream
    • ListView_HorizontalListView_Padding_SamplesApp_Windows_UI_Xaml_Controls_ListView_HorizontalListView_Padding
  • ios: 17 changed over 213

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • MinMaxTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • DecimalFormatterTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • ListView_ExpandableItem_ExpandMultipleItems_Expanded_State
    • UpDownTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • ListView_ExpandableItemLarge_ExpandHeaderWithSingleItem_Validation_Expanded_State
    • ProgressRing_IsEnabled_Running_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • ListView_ExpandableItemLarge_ExpandHeaderWithMultipleItems_Validation_Expanded_State
    • Button_IsEnabled_Validation_Uno_UI_Samples_Content_UITests_ButtonTestsControl_Button_IsEnabled_Automated
    • HyperlinkButton_IsEnabled_Validation_Uno_UI_Samples_Content_UITests_ButtonTestsControl_HyperlinkButton_IsEnabled_Automated
    • ListView_ExpandableItem_ExpandSingleItem_Expanded_State
    • UpDownEnabledTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • TextBox_Disable_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_Disabled
    • ThreeStates_Checked
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • ListView_ExpandableItemLarge_ExpandHeader_Validation_Expanded_State
    • ProgressRing_Visibility_Collapsed_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • TextBox_IsReadOnly_AcceptsReturn_Test_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_IsReadOnly_AcceptsReturn
  • ios-Snap: 83 changed over 986

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons_UITests_Windows_UI_Xaml_Controls_CheckBoxTests_CheckBox_States_UITests_Windows_UI_Xaml_Controls_CheckBoxTests_CheckBox_States
    • Microsoft_UI_Xaml_Media_UITests_Windows_UI_Xaml_Media_ThemeShadowTests_ThemeShadow_Overlap_UITests_Windows_UI_Xaml_Media_ThemeShadowTests_ThemeShadow_Overlap
    • SelectorBar_MUXControlsTestApp_SelectorBarPage_MUXControlsTestApp_SelectorBarPage
    • SelectorBar_MUXControlsTestApp_SelectorBarSummaryPage_MUXControlsTestApp_SelectorBarSummaryPage
    • Brushes_ImageBrushStretch_Uno_UI_Samples_UITests_ImageBrushTestControl_ImageBrushStretch
    • Buttons_HyperlinkButton_IsEnabled_Automated_Uno_UI_Samples_Content_UITests_ButtonTestsControl_HyperlinkButton_IsEnabled_Automated
    • Grid_CenteredGridinGridwiththreefixedsizechildren_Uno_UI_Samples_Content_UITests_GridTestsControl_CenteredGridinGridwiththreefixedsizechildren
    • NavigationView_MUXControlsTestApp_NavigationViewMenuItemStretchPage_MUXControlsTestApp_NavigationViewMenuItemStretchPage
    • NavigationView_MUXControlsTestApp_NavigationViewMinimalPage_MUXControlsTestApp_NavigationViewMinimalPage
    • NavigationView_MUXControlsTestApp_NavigationViewRS3Page_MUXControlsTestApp_NavigationViewRS3Page
    • Scrolling_MUXControlsTestApp_ScrollViewBlankPage_MUXControlsTestApp_ScrollViewBlankPage
    • TextBox_TextBox_Disabled_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_Disabled
    • Buttons_CheckBox_Button_Uno_UI_Samples_Content_UITests_ButtonTestsControl_CheckBox_Button
    • MUX_NumberBox_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • MUX_UITests_Microsoft_UI_Xaml_Controls_SplitButtonTests_SplitButtonTestsPage_UITests_Microsoft_UI_Xaml_Controls_SplitButtonTests_SplitButtonTestsPage
    • TabView_MUXControlsTestApp_TabViewPage_MUXControlsTestApp_TabViewPage
    • Brushes_PanelImageBrush_Uno_UI_Samples_UITests_ImageBrushTestControl_PanelImageBrush
    • Gesture_Recognizer_Pointer_Events_test_bench_UITests_Shared_Windows_UI_Input_GestureRecognizer_PointersEvents
    • NavigationView_MUXControlsTestApp_NavigationViewTopNavPage_MUXControlsTestApp_NavigationViewTopNavPage
    • Scrolling_MUXControlsTestApp_ScrollViewBringIntoViewPage_MUXControlsTestApp_ScrollViewBringIntoViewPage
  • skia-linux-screenshots: 53 changed over 2316

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • Buttons.png-dark
    • Buttons.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • DropDownButtonPage.png-dark
    • ButtonClippingTestsControl.png-dark
    • DisplayInformation.png-dark
    • Examples.png-dark
    • Examples.png
    • ButtonClippingTestsControl.png
    • Image_AnimatedWebP.png-dark
    • Image_AnimatedWebP.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
  • skia-windows-screenshots: 128 changed over 2318

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • ClipboardTests.png
    • Button_IsEnabled_Automated.png-dark
    • Button_IsEnabled_Automated.png
    • CalendarView_Theming.png-dark
    • ContentPresenter_Template.png-dark
    • ContentPresenter_Template.png
    • ContentPresenter_TextProperties.png-dark
    • ContentPresenter_TextProperties.png
    • DisplayInformation.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • FocusManagerTest.png-dark
    • FocusManagerTest.png
    • BasicAutoSuggestBox.png
    • BitmapImage_vs_SvgImageSource.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Buttons.png
  • wasm: 129 changed over 1066

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • MUXControlsTestApp.SwipeControlPage
    • SamplesApp.Wasm.Windows_UI_Xaml_Media.Transform.Border_With_CompositeTransform
    • SamplesApp.Wasm.Windows_UI_Xaml_Media.Transform.Border_With_Off_Centre_RotateTransform
    • UITests.Shared.Windows_UI_Xaml_Controls.CommandBar.CommandBar_Xaml_Automated
    • UITests.Toolkit.ElevatedView_Levels
    • UITests.Windows_UI_Xaml_Controls.CommandBar.BackButtonTitle.CommandBar_Frame
    • UITests.Windows_UI_Xaml_Controls.Repeater.ItemsRepeater_Nested
    • UITests.Windows_UI_Xaml_Controls.TextBox.TextBox_IsTabStop
    • GenericApp.Views.Content.UITests.ImageBrushTestControl.BorderImageBrushRelativeTransform
    • UITests.Microsoft_UI_Xaml_Controls.RadioButtonsTests.RadioButtonsBasicPage
    • UITests.Shared.Windows_UI_Xaml_Controls.ComboBox.ComboBox_ComboBoxItem_Selection
    • UITests.Shared.Windows_UI_Xaml_Controls.ComboBox.ComboBox_MaxDropdownHeight
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • Uno.UI.Samples.Content.UITests.Animations.DoubleAnimation_VisualStates
    • initial_state
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.UndefinedHeightListView
    • UITests.Shared.Windows_UI_Xaml_Controls.ToolTip.TextOnlyToolTipSample
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ComboBox.ComboBox_PlaceholderText
    • SamplesApp.Wasm.Windows_UI_Xaml_Media.Transform.Border_With_ScaleTransform
  • wasm-automated-net10.0-WinUI-Benchmarks-automated: 0 changed over 1

  • wasm-automated-net10.0-WinUI-Default-automated: 112 changed over 877

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • BitmapImage_vs_SvgImageSource_BitmapRemote_UITests_Windows_UI_Xaml_Controls_ImageTests_BitmapImage_vs_SvgImageSource
    • BitmapImage_vs_SvgImageSource_BitmapRemote_url_stream
    • Default_StrokeThickness_MyPolygon
    • FocusManager_GetFocusedElement_Button_Validation_FocusManager_-_GetFocusedElement_-_Button_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_Button_Validation_FocusManager_-_GetFocusedElement_-_Button_-_2_-_After_Selection
    • FocusManager_GetFocusedElement_ComboBox_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_Grid_Validation_FocusManager_-_GetFocusedElement_-_Grid_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_ToggleButton_LostFocus_Validation_FocusManager_-_LostFocus_-_ToggleButton_-_2_-_Click_outside
    • FocusManager_GetFocusedElement_ToggleButton_LostFocus_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • PopupWithOverlay_During
    • ScrollViewer_Fluent_ScrollBar_Appears_No_scroll_indicators
    • ScrollViewer_Fluent_ScrollBar_Appears_Scroll_indicators_visible
    • BitmapImage_vs_SvgImageSource_BitmapLocal_UITests_Windows_UI_Xaml_Controls_ImageTests_BitmapImage_vs_SvgImageSource
    • BitmapImage_vs_SvgImageSource_SvgLocal_UITests_Windows_UI_Xaml_Controls_ImageTests_BitmapImage_vs_SvgImageSource
    • BitmapImage_vs_SvgImageSource_SvgRemote_url_direct
    • Default_StrokeThickness_MyEllipse
    • FocusManager_GetFocusedElement_ComboBoxItem_LostFocus_Validation_FocusManager_-_LostFocus_-_ComboBoxItem_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_ComboBoxItem_LostFocus_Validation_FocusManager_-_LostFocus_-_ComboBoxItem_-_2_-_Click_outside
    • FocusManager_GetFocusedElement_ListViewItem_Validation_FocusManager_-_GetFocusedElement_-_ListViewItem_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_ListViewItem_Validation_FocusManager_-_GetFocusedElement_-_ListViewItem_-_2_-_After_Selection
  • wasm-automated-net10.0-WinUI-RuntimeTests-0: 0 changed over 1

  • wasm-automated-net10.0-WinUI-RuntimeTests-1: 0 changed over 1

  • wasm-automated-net10.0-WinUI-RuntimeTests-2: 0 changed over 1

@unodevops

Copy link
Copy Markdown
Contributor

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

Copilot AI review requested due to automatic review settings March 20, 2026 11:57

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 adds dynamic system accent color support across Uno by introducing an accent palette abstraction, wiring it into UISettings.GetColorValue(UIColorType.Accent*), and updating system resources to resolve accent-related keys via ThemeResource so they can be updated at runtime (with platform implementations for Android and Skia hosts).

Changes:

  • Route UISettings accent color queries through a new AccentColorHelper + AccentColorPalette instead of hardcoded values.
  • Add runtime updating of SystemAccentColor* (and related resources/brushes) via AccentColorResourceUpdater, triggered from Application on accent changes.
  • Introduce platform accent retrieval hooks (Android 12+ Material You, Skia Win32 registry palette, Skia macOS native callback) and a FeatureConfiguration.AccentColor.OverrideAccentColor override for deterministic behavior.

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/Uno.UWP/UI/ViewManagement/UISettings.cs Switches accent UIColorType values to use AccentColorHelper.CurrentPalette.
src/Uno.UWP/Helpers/Theming/AccentColorPalette.cs Defines a 7-color accent palette and derives shades from a single accent color.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.cs Central helper for palette resolution (override/platform/default) and change notifications.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.Android.cs Retrieves Android 12+ system accent and derives palette.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.skia.cs Skia extension hook for palette retrieval + change notification.
src/Uno.UWP/Helpers/Theming/IAccentColorExtension.skia.cs New Skia extension contract for accent palette + change events.
src/Uno.UWP/Helpers/Theming/AccentColorHelper.UIKit.cs / .wasm.cs / .others.cs Platform stubs returning null when unsupported.
src/Uno.UI/UI/Xaml/Style/Generic/SystemResources.xaml Converts several accent brush color bindings from StaticResource to ThemeResource.
src/Uno.UI/UI/Xaml/Application.cs Subscribes to accent changes, updates resources, and refreshes accent on theme changes.
src/Uno.UI/UI/Xaml/AccentColorResourceUpdater.cs Injects updated accent keys/brushes into the system dictionaries at runtime.
src/Uno.UI/FeatureConfiguration.cs Adds FeatureConfiguration.AccentColor.OverrideAccentColor to override system accent.
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Documents/Given_Hyperlink.cs Uses an accent override helper for deterministic hyperlink tests.
src/Uno.UI.Runtime.Skia.Win32/Hosting/Win32Host.cs Registers the Win32 accent extension with ApiExtensibility.
src/Uno.UI.Runtime.Skia.Win32/Helpers/Theming/Win32AccentColorExtension.cs Reads Windows accent palette from registry + watches for changes.
src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOApplication.m / .h Adds native callback + getter for macOS control accent color and change notifications.
src/Uno.UI.Runtime.Skia.MacOS/Native/NativeUno.cs Adds P/Invoke declarations for macOS accent APIs.
src/Uno.UI.Runtime.Skia.MacOS/Hosting/MacSkiaHost.cs Registers the macOS accent extension.
src/Uno.UI.Runtime.Skia.MacOS/Helpers/Theming/MacOSAccentColorExtension.cs Implements Skia macOS accent palette retrieval + change event bridging.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Uno.UI/UI/Xaml/Application.cs Resolved
Comment thread src/Uno.UI/FeatureConfiguration.cs Resolved
@MartinZikmund
MartinZikmund marked this pull request as ready for review March 20, 2026 12:15
@unodevops

Copy link
Copy Markdown
Contributor

1 similar comment
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 202735 found UI Test snapshots differences: android-28-net9: 99, android-28-net9-Snap: 72, ios: 19, ios-Snap: 69, skia-linux-screenshots: 53, skia-windows-screenshots: 150, wasm: 129, wasm-automated-net10.0-WinUI-Benchmarks-automated: 0, wasm-automated-net10.0-WinUI-Default-automated: 115, wasm-automated-net10.0-WinUI-RuntimeTests-0: 0, wasm-automated-net10.0-WinUI-RuntimeTests-1: 0, wasm-automated-net10.0-WinUI-RuntimeTests-2: 0

Details
  • android-28-net9: 99 changed over 758

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DecimalFormatterTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • FocusManager_GetFocusedElement_CheckBox_LostFocus_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_Button_LostFocus_Validation_FocusManager_-_LostFocus_-_Button_-_2_-_Click_outside
    • FocusManager_GetFocusedElement_Button_LostFocus_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_CheckBox_LostFocus_Validation_FocusManager_-_LostFocus_-_CheckBox_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_HyperlinkButton_Validation_FocusManager_-_GetFocusedElement_-_HyperlinkButton_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_ComboBoxItem_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_ComboBox_LostFocus_Validation_FocusManager_-_LostFocus_-_ComboBox_-_2_-_Click_outside
    • FocusManager_GetFocusedElement_ComboBox_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_HyperlinkButton_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_HyperlinkButton_Validation_FocusManager_-_GetFocusedElement_-_HyperlinkButton_-_2_-_Click_outside
    • FocusManager_GetFocusedElement_ComboBox_LostFocus_Validation_FocusManager_-_LostFocus_-_ComboBox_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_ComboBox_LostFocus_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_ListViewItem_Validation_FocusManager_-_GetFocusedElement_-_ListViewItem_-_2_-_After_Selection
    • FocusManager_GetFocusedElement_Image_Validation_FocusManager_-_GetFocusedElement_-_Image_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_TextBoxSingleLine_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_TextBoxMultiLine_LostFocus_Validation_FocusManager_-_LostFocus_-_TextBoxMultiLine_-_2_-_Click_outside
    • FocusManager_GetFocusedElement_TextBoxMultiLine_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_ListViewItem_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_ToggleButton_Validation_FocusManager_-_GetFocusedElement_-_ToggleButton_-_1_-_Initial_State
  • android-28-net9-Snap: 72 changed over 1067

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons_CheckBox_Button_Uno_UI_Samples_Content_UITests_ButtonTestsControl_CheckBox_Button
    • MUX_MUXControlsTestApp_DropDownButtonPage_MUXControlsTestApp_DropDownButtonPage
    • MUX_MUXControlsTestApp_PersonPicturePage_MUXControlsTestApp_PersonPicturePage
    • SelectorBar_MUXControlsTestApp_SelectorBarSummaryPage_MUXControlsTestApp_SelectorBarSummaryPage
    • Shapes_Misc_Controls_SamplesApp_Windows_UI_Xaml_Shapes_ShapeControlsPage
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_Basic_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_Basic
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_FromMsAppData_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_FromMsAppData
    • ListView_ListView_With_ListViews_Count_Measure_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListView_With_ListViews_Count_Measure
    • ColorPicker_WinUIColorPickerPage_UITests_Shared_Microsoft_UI_Xaml_Controls_ColorPickerTests_WinUIColorPickerPage
    • Gesture_Recognizer_Pointer_Events_test_bench_UITests_Shared_Windows_UI_Input_GestureRecognizer_PointersEvents
    • ListView_HorizontalListView_Padding_SamplesApp_Windows_UI_Xaml_Controls_ListView_HorizontalListView_Padding
    • Buttons_Buttons_Uno_UI_Samples_Content_UITests_ButtonTestsControl_Buttons
    • CommandBar_Examples_Uno_UI_Samples_Content_UITests_CommandBar_CommandBar_Examples
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_BitmapImage_vs_SvgImageSource_UITests_Windows_UI_Xaml_Controls_ImageTests_BitmapImage_vs_SvgImageSource
    • RatingControl_UITests_Microsoft_UI_Xaml_Controls_RatingControlTests_RatingControlPage_UITests_Microsoft_UI_Xaml_Controls_RatingControlTests_RatingControlPage
    • TextBox_TextBox_Disabled_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_Disabled
    • CommandBarFlyout_MUXControlsTestApp_CommandBarFlyoutPage_MUXControlsTestApp_CommandBarFlyoutPage
    • Default_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected
    • MediaPlayerElement_Mini_player_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Minimal
    • MediaPlayerElement_Using_ogg_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Ogg_Extension
  • ios: 19 changed over 213

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ListView_ExpandableItemLarge_ExpandHeader_Validation_Expanded_State
    • TextBox_IsReadOnly_AcceptsReturn_Test_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_IsReadOnly_AcceptsReturn
    • UpDownTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • TextBox_UpdatedBinding_On_OneWay_Mode_UITests_Windows_UI_Xaml_Controls_TextBox_TextBox_Bindings
    • ListView_ExpandableItem_ExpandMultipleItems_Expanded_State
    • ListView_SelectedItems_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListViewSelectedItems
    • ThreeStates_Checked
    • DecimalFormatterTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • UpDownEnabledTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • ListView_ExpandableItemLarge_ExpandHeaderWithSingleItem_Validation_Expanded_State
    • ListView_ExpandableItem_ExpandSingleItem_Expanded_State
    • TextBox_Disable_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_Disabled
    • HyperlinkButton_IsEnabled_Validation_Uno_UI_Samples_Content_UITests_ButtonTestsControl_HyperlinkButton_IsEnabled_Automated
    • ListView_ExpandableItemLarge_ExpandHeaderWithMultipleItems_Validation_Expanded_State
    • ProgressRing_Visibility_Collapsed_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • When_SingleSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • Button_IsEnabled_Validation_Uno_UI_Samples_Content_UITests_ButtonTestsControl_Button_IsEnabled_Automated
    • ProgressRing_IsEnabled_Running_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • MinMaxTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
  • ios-Snap: 69 changed over 986

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Grid_CenteredGridinGridwiththreefixedsizechildren_Uno_UI_Samples_Content_UITests_GridTestsControl_CenteredGridinGridwiththreefixedsizechildren
    • MUX_NumberBox_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • Focus_FocusManagerTest_Uno_UI_Samples_Content_UITests_FocusTests_FocusManagerTest
    • Focus_GetFocus_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • MUX_MUXControlsTestApp_DropDownButtonPage_MUXControlsTestApp_DropDownButtonPage
    • MUX_MUXControlsTestApp_PersonPicturePage_MUXControlsTestApp_PersonPicturePage
    • TextBox_TextBox_Disabled_UITests_Shared_Windows_UI_Xaml_Controls_TextBoxTests_TextBox_Disabled
    • Default_Uno_UI_Samples_Content_UITests_WebView_WebView_AnchorNavigation_Uno_UI_Samples_Content_UITests_WebView_WebView_AnchorNavigation
    • Image_EmptyImageFixedWidth_Uno_UI_Samples_UITests_ImageTestsControl_EmptyImageFixedWidth
    • NavigationView_MUXControlsTestApp_NavigationViewCompactPaneLengthTestPage_MUXControlsTestApp_NavigationViewCompactPaneLengthTestPage
    • NavigationView_MUXControlsTestApp_NavigationViewCustomThemeResourcesPage_MUXControlsTestApp_NavigationViewCustomThemeResourcesPage
    • Performance_Dopes_UITests_Windows_UI_Xaml_Performance_Performance_Dopes
    • Performance_UITests_Windows_UI_Xaml_Performance_Performance_1000ButtonsContinuousRendering_UITests_Windows_UI_Xaml_Performance_Performance_1000ButtonsContinuousRendering
    • Shapes_Misc_Controls_SamplesApp_Windows_UI_Xaml_Shapes_ShapeControlsPage
    • ToggleSwitch_Native_ToggleSwitch_IsOn_SamplesApp_Windows_UI_Xaml_Controls_ToggleSwitchControl_Native_ToggleSwitch_IsOn
    • AutoSuggestBox_UITests_Shared_Windows_UI_Xaml_Controls_AutoSuggestBoxTests_BasicAutoSuggestBox_UITests_Shared_Windows_UI_Xaml_Controls_AutoSuggestBoxTests_BasicAutoSuggestBox
    • Brushes_ImageBrushStretch2_Uno_UI_Samples_UITests_ImageBrushTestControl_ImageBrushStretch2
    • Image_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Alignment_SizeOnControl_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Alignment_SizeOnControl
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_BitmapImage_vs_SvgImageSource_UITests_Windows_UI_Xaml_Controls_ImageTests_BitmapImage_vs_SvgImageSource
    • NavigationView_MUXControlsTestApp_NavigationViewTopNavPage_MUXControlsTestApp_NavigationViewTopNavPage
  • skia-linux-screenshots: 53 changed over 2316

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • ClipboardTests.png-dark
    • Image_AnimatedWebP.png-dark
    • Image_AnimatedWebP.png
    • ButtonClippingTestsControl.png-dark
    • DisplayInformation.png-dark
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • Examples.png-dark
    • Examples.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • CalendarView_Theming.png
  • skia-windows-screenshots: 150 changed over 2318

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • FocusManagerTest.png-dark
    • FocusManagerTest.png
    • Button_IsEnabled_Automated.png-dark
    • Button_IsEnabled_Automated.png
    • ContentPresenter_TextProperties.png-dark
    • ContentPresenter_TextProperties.png
    • BasicAutoSuggestBox.png
    • BitmapImage_vs_SvgImageSource.png-dark
    • CheckBox_States.png-dark
    • CheckBox_States.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • EllipsemaskingEllipseGrid.png-dark
    • CompositionEffectBrush.png-dark
    • EllipsemaskingEllipseGrid.png
    • CompositionEffectBrush.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • ButtonClippingTestsControl.png-dark
    • CheckBox_Button.png-dark
  • wasm: 129 changed over 1066

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • UITests.Shared.Windows_UI_Xaml_Controls.ComboBox.ComboBox_ComboBoxItem_Selection
    • UITests.Shared.Windows_UI_Xaml_Controls.ComboBox.ComboBox_MaxDropdownHeight
    • UITests.Shared.Windows_UI_Xaml_Controls.ListView.ListView_ObservableCollection_Unused_Space
    • UITests.Toolkit.ElevatedView_Levels
    • UITests.Windows_UI_Xaml.DragAndDrop.DragDrop_TreeView
    • UITests.Windows_UI_Xaml.FocusTests.Focus_FocusState
    • GenericApp.Views.Content.UITests.ImageBrushTestControl.ImageBrush_UniformToFill
    • GenericApp.Views.Content.UITests.ImageBrushTestControl.BorderImageBrushRelativeTransform
    • MUXControlsTestApp.SwipeControlPage
    • SamplesApp.Wasm.Windows_UI_Xaml_Media.Transform.Border_With_Off_Centre_RotateTransform
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListView_BoundSelectedItem
    • UITests.Microsoft_UI_Xaml_Controls.CommandBarTests.CommandBar_Primary_And_Secondary
    • UITests.Windows_UI_Xaml.Clipping.BorderVisualClipping
    • UITests.Windows_UI_Xaml_Controls.PasswordBoxTests.PasswordBox_AutoFill
    • UITests.Windows_UI_Xaml_Controls.TextBox.PasswordBox_Description
    • UITests.Windows_UI_Xaml_Controls.TextBox.TextBox_ClipboardMethods
    • UITests.Windows_UI_Xaml_Controls.ImageTests.BitmapImage_vs_SvgImageSource
    • UITests.Shared.Windows_UI_Xaml_Controls.TextBoxTests.TextBox_CharacterCasing
    • UITests.Shared.Windows_UI_Xaml_Controls.TextBoxTests.TextBox_IsReadOnly_AcceptsReturn
    • UITests.Windows_ApplicationModel.ClipboardTests
  • wasm-automated-net10.0-WinUI-Benchmarks-automated: 0 changed over 1

  • wasm-automated-net10.0-WinUI-Default-automated: 115 changed over 877

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • BitmapImage_vs_SvgImageSource_SvgLocal_UITests_Windows_UI_Xaml_Controls_ImageTests_BitmapImage_vs_SvgImageSource
    • BitmapImage_vs_SvgImageSource_SvgRemote_url_direct
    • BitmapImage_vs_SvgImageSource_BitmapLocal_url_local
    • BitmapImage_vs_SvgImageSource_SvgLocal_url_local
    • Default_StrokeThickness_MyLine
    • Default_StrokeThickness_MyPath
    • FocusManager_GetFocusedElement_ComboBox_Validation_FocusManager_-_GetFocusedElement_-_ComboBox_-_2_-_After_Selection
    • FocusManager_GetFocusedElement_ComboBox_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_TextBlock_Validation_FocusManager_-_GetFocusedElement_-_TextBlock_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_Grid_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_TextBlock_Validation_FocusManager_-_GetFocusedElement_-_TextBlock_-_2_-_After_Selection
    • FocusManager_GetFocusedElement_HyperlinkButton_LostFocus_Validation_FocusManager_-_LostFocus_-_HyperlinkButton_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_TextBoxMultiLine_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_TextBoxSingleLine_LostFocus_Validation_FocusManager_-_LostFocus_-_TextBoxSingleLine_-_1_-_Initial_State
    • HyperlinkButton_IsEnabled_Validation_Uno_UI_Samples_Content_UITests_ButtonTestsControl_HyperlinkButton_IsEnabled_Automated
    • PopupWithOverlay_During
    • FocusManager_GetFocusedElement_ComboBox_LostFocus_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
    • FocusManager_GetFocusedElement_ComboBox_Validation_FocusManager_-_GetFocusedElement_-_ComboBox_-_1_-_Initial_State
    • FocusManager_GetFocusedElement_ScrollViewer_Validation_FocusManager_-_GetFocusedElement_-_ScrollViewer_-_2_-_After_Selection
    • FocusManager_GetFocusedElement_ScrollViewer_Validation_Uno_UI_Samples_Content_UITests_FocusTests_FocusManager_GetFocus_Automated
  • wasm-automated-net10.0-WinUI-RuntimeTests-0: 0 changed over 1

  • wasm-automated-net10.0-WinUI-RuntimeTests-1: 0 changed over 1

  • wasm-automated-net10.0-WinUI-RuntimeTests-2: 0 changed over 1

@unodevops

Copy link
Copy Markdown
Contributor

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

@MartinZikmund
MartinZikmund marked this pull request as draft March 23, 2026 12:45
Copilot AI review requested due to automatic review settings March 30, 2026 15: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 21 out of 21 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 204506 found UI Test snapshots differences: android-28-net9: 17, android-28-net9-Snap: 22, ios: 8, ios-Snap: 48, skia-linux-screenshots: 71, skia-windows-screenshots: 117, wasm: 109, wasm-automated-net10.0-WinUI-Benchmarks-automated: 0, wasm-automated-net10.0-WinUI-Default-automated: 13, wasm-automated-net10.0-WinUI-RuntimeTests-0: 0, wasm-automated-net10.0-WinUI-RuntimeTests-1: 0, wasm-automated-net10.0-WinUI-RuntimeTests-2: 0

Details
  • android-28-net9: 17 changed over 758

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DecimalFormatterTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • Detereminate_ProgressRing_Validation75_[#FF0000_#008000_#008000_#008000]_Progress-Ring-Value-75
    • ProgressRing_IsEnabled_Running_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • UpDownEnabledTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • WebView_NavigateToAnchor_Uno_UI_Samples_Content_UITests_WebView_WebView_AnchorNavigation
    • When_Parent_PointerMoved_After_drag_on_non-scrolling_ScrollViewer
    • When_SingleSelectionWithItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • When_SingleSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • Detereminate_ProgressRing_Validation25_[#FF0000_#008000_#FF0000_#FF0000]_Progress-Ring-Value-25
    • When_Parent_PointerMoved_After_drag_on_ScrollViewer_-_touch
    • NativeCommandBar_Size_Uno_UI_Samples_Content_UITests_CommandBar_CommandBar_Dynamic
    • When_ExtendedSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • Detereminate_ProgressRing_Validation50_[#FF0000_#008000_#008000_#FF0000]_Progress-Ring-Value-50
    • When_NoSelectionWithItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • When_NoSelection_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • ProgressRing_Visibility_Collapsed_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
  • android-28-net9-Snap: 22 changed over 1069

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • MediaPlayerElement_Mini_player_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Minimal
    • Icons_UITests_Microsoft_UI_Xaml_Controls_ImageIconTests_ImageIconPage_UITests_Microsoft_UI_Xaml_Controls_ImageIconTests_ImageIconPage
    • MediaPlayerElement_Using_ogg_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Ogg_Extension
    • CommandBar_Examples_Uno_UI_Samples_Content_UITests_CommandBar_CommandBar_Examples
    • TextBlock_UITests_Shared_Windows_UI_Xaml_Controls_TextBlockControl_TextBlock_Layout_UITests_Shared_Windows_UI_Xaml_Controls_TextBlockControl_TextBlock_Layout
    • TeachingTip_UITests_Microsoft_UI_Xaml_Controls_TeachingTipTests_TeachingTipPage_UITests_Microsoft_UI_Xaml_Controls_TeachingTipTests_TeachingTipPage
    • Transform_Basics_UITests_Shared_Windows_UI_Xaml_Media_Transform_Basics
    • MUX_NumberBox_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • MUX_UITests_Shared_Microsoft_UI_Xaml_Controls_TreeViewTests_TreeViewPage_UITests_Shared_Microsoft_UI_Xaml_Controls_TreeViewTests_TreeViewPage
    • Projection_PlaneProjection_Basic_UITests_Shared_Windows_UI_Xaml_Media_Projection_PlaneProjection_Basic
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_Basic_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_Basic
    • WebView_UITests_Microsoft_UI_Xaml_Controls_WebView2Tests_WebView2_NavigationProperties_UITests_Microsoft_UI_Xaml_Controls_WebView2Tests_WebView2_NavigationProperties
    • CommandBarFlyout_MUXControlsTestApp_CommandBarFlyoutPage_MUXControlsTestApp_CommandBarFlyoutPage
    • Gesture_Recognizer_Pointer_Events_test_bench_UITests_Shared_Windows_UI_Input_GestureRecognizer_PointersEvents
    • ListView_ListView_With_ListViews_Count_Measure_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListView_With_ListViews_Count_Measure
    • NavigationView_MUXControlsTestApp_NavigationViewTopNavPage_MUXControlsTestApp_NavigationViewTopNavPage
    • Scrolling_MUXControlsTestApp_ScrollViewDynamicPage_MUXControlsTestApp_ScrollViewDynamicPage
    • Scrolling_MUXControlsTestApp_ScrollViewKeyboardAndGamepadNavigationPage_MUXControlsTestApp_ScrollViewKeyboardAndGamepadNavigationPage
    • TabView_MUXControlsTestApp_TabViewPage_MUXControlsTestApp_TabViewPage
    • Pickers_UITests_Windows_UI_Xaml_Controls_CalendarView_CalendarView_Theming_UITests_Windows_UI_Xaml_Controls_CalendarView_CalendarView_Theming
  • ios: 8 changed over 213

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Check_ListView_Swallows_Measure_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListView_With_ListViews_Count_Measure
    • ListView_SelectedItems_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListViewSelectedItems
    • ProgressRing_Visibility_Collapsed_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • ProgressRing_IsEnabled_Running_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • TextBox_UpdatedBinding_On_OneWay_Mode_UITests_Windows_UI_Xaml_Controls_TextBox_TextBox_Bindings
    • ListView_Weird_Measure_During_Arrange_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListView_Weird_Measure
    • When_SingleSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
  • ios-Snap: 48 changed over 988

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Brushes_ImageBrushWithCompositeTransform_Uno_UI_Samples_UITests_ImageBrushTestControl_ImageBrushWithCompositeTransform
    • Microsoft_UI_Xaml_Media_UITests_Windows_UI_Xaml_Media_ThemeShadowTests_ThemeShadow_Overlap_UITests_Windows_UI_Xaml_Media_ThemeShadowTests_ThemeShadow_Overlap
    • Brushes_EllipsemaskingEllipseGrid_Uno_UI_Samples_UITests_ImageBrushTestControl_EllipsemaskingEllipseGrid
    • Buttons_Custom_Button_With_ContentTemplate_Uno_UI_Samples_Content_UITests_ButtonTestsControl_Custom_Button_With_ContentTemplate
    • Microsoft_UI_Composition_UITests_Windows_UI_Composition_TransformElementClippedByParent_Then_ClippingAppliedPostRendering_UITests_Windows_UI_Composition_TransformElementClippedByParent_Then_ClippingAppliedPostRendering
    • TabView_MUXControlsTestApp_TabViewPage_MUXControlsTestApp_TabViewPage
    • Brushes_ImageBrushStretch2_Uno_UI_Samples_UITests_ImageBrushTestControl_ImageBrushStretch2
    • Brushes_UITests_Shared_Windows_UI_Xaml_Media_ImageBrushTests_ImageBrush_SameWithDelay_UITests_Shared_Windows_UI_Xaml_Media_ImageBrushTests_ImageBrush_SameWithDelay
    • Image_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Algmnt_Inf_Horizontal_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Algmnt_Inf_Horizontal
    • Image_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Algmnt_Inf_Vertical_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Algmnt_Inf_Vertical
    • Image_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Alignment_SizeOnControl_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Alignment_SizeOnControl
    • Grid_UITests_Windows_UI_Xaml_Controls_GridTestsControl_Grid_DynamicRowColumn_UITests_Windows_UI_Xaml_Controls_GridTestsControl_Grid_DynamicRowColumn
    • NavigationView_MUXControlsTestApp_NavigationViewRS4Page_MUXControlsTestApp_NavigationViewRS4Page
    • MediaPlayerElement_Using_ogg_UITests_Shared_Windows_UI_Xaml_Controls_MediaPlayerElement_MediaPlayerElement_Ogg_Extension
    • Icons_UITests_Shared_Windows_UI_Xaml_Controls_BitmapIconTests_BitmapIcon_Foreground_UITests_Shared_Windows_UI_Xaml_Controls_BitmapIconTests_BitmapIcon_Foreground
    • NavigationView_MUXControlsTestApp_NavigationViewMenuItemStretchPage_MUXControlsTestApp_NavigationViewMenuItemStretchPage
    • Scrolling_MUXControlsTestApp_ScrollViewsWithSimpleContentsPage_MUXControlsTestApp_ScrollViewsWithSimpleContentsPage
    • Scrolling_MUXControlsTestApp_ScrollViewWithRTLFlowDirectionPage_MUXControlsTestApp_ScrollViewWithRTLFlowDirectionPage
    • Brushes_ImageBrushStretch_Uno_UI_Samples_UITests_ImageBrushTestControl_ImageBrushStretch
    • Default_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected_SamplesApp_Wasm_Windows_UI_Xaml_Controls_ListView_ListView_IsSelected
  • skia-linux-screenshots: 71 changed over 2322

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • ColorPickerSample.png-dark
    • DropDownButtonPage.png-dark
    • ClipboardTests.png-dark
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • Buttons.png-dark
    • ImagesInlineInFlipView.png-dark
    • ImagesInlineInFlipView.png
    • Focus_FocusVisual_Properties.png-dark
    • Image_Stretch_None.png-dark
  • skia-windows-screenshots: 117 changed over 2322

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • ClipboardTests.png-dark
    • Examples.png-dark
    • Examples.png
    • BitmapIcon_Foreground.png
    • FluentStyle_NavigationViewSample.png-dark
    • FluentStyle_NavigationViewSample.png
    • HierarchicalNavigationViewMarkup.png-dark
    • HierarchicalNavigationViewMarkup.png
    • CalendarView_Theming.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • Focus_FocusVisual_Properties.png-dark
  • wasm: 109 changed over 1068

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • GenericApp.Views.Samples.Shared.Content.UITests.GridViewMultipleSelectionMode
    • MUXControlsTestApp.SwipeControlPage
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Windows_UI_Xaml_Controls.AutoSuggestBoxTests.AutoSuggestBox_Description
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ComboBox.ComboBox_PlaceholderText
    • SamplesApp.Windows_UI_Xaml.Clipping.DoubleAnimationClipping
    • UITests.Shared.Windows_UI_Xaml.UIElementTests.TransformToVisual_Simple
    • UITests.Shared.Windows_UI_Xaml_Controls.TextBlockControl.Foreground_Brushes
    • UITests.Shared.Windows_UI_Xaml_Controls.TextBlockControl.SimpleText_MaxLines_Different_Font_Size
    • UITests.Windows_UI_Xaml_Controls.ListView.ListViewItem_IsEnabled
    • UITests.Windows_UI_Xaml_Controls.TextBox.TextBox_Foreground_Changing
    • Uno.UI.Samples.Content.UITests.ButtonTestsControl.CheckBox_Button
    • MUXControlsTestApp.CommandBarFlyoutPage
    • UITests.Shared.Windows_ApplicationModel.Email.EmailManagerTests
    • UITests.Windows_UI_Xaml.FocusTests.Focus_FocusVisual_Properties
    • UITests.Windows_UI_Xaml_Controls.Repeater.ItemsRepeater_Nested
    • UITests.Windows_UI_Xaml_Controls.TextBox.WASM_Multiline
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewResizable
    • UITests.Microsoft_UI_Xaml_Controls.TreeViewTests.TreeView_ItemInvoked
  • wasm-automated-net10.0-WinUI-Benchmarks-automated: 0 changed over 1

  • wasm-automated-net10.0-WinUI-Default-automated: 13 changed over 877

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Default_StrokeThickness_MyEllipse
    • When_MultipleSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • Default_StrokeThickness_MyRect
    • ListView_SelectedItems_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListViewSelectedItems
    • When_SingleSelectionWithItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • Default_StrokeThickness_MyPath
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • Default_StrokeThickness_MyLine
    • When_SingleSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • Default_StrokeThickness_MyPolygon
    • Default_StrokeThickness_MyPolyline
    • TestProgressRing_InitialState_UITests_Microsoft_UI_Xaml_Controls_ProgressRing_WinUIProgressRing_Features
    • When_Theme_Changed_No_Crash_UITests_Windows_UI_Xaml_Controls_CalendarView_CalendarView_Theming
  • wasm-automated-net10.0-WinUI-RuntimeTests-0: 0 changed over 1

  • wasm-automated-net10.0-WinUI-RuntimeTests-1: 0 changed over 1

  • wasm-automated-net10.0-WinUI-RuntimeTests-2: 0 changed over 1

@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

MartinZikmund and others added 2 commits November 21, 2026 08:23
Drop AccentColorResourceUpdater. The accent entries of FrameworkTheming's
color and brush list now reach the system resources from NotifyThemeChange,
like MUX's UpdateColorAndBrushResources, and accent changes go through
FrameworkTheming.OnThemeChanged as JupiterWindow's ColorValuesChanged
handler does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtyrxcH4SsHeU1KRcFo
Track the 1:1 FrameworkTheming, Theme and ThemingInterop ports at WinUI
2.7.0. The upstream files are unchanged between the ports' header commit
fc2f82117 and the tag, and a line-by-line review found no unmarked gaps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtyrxcH4SsHeU1KRcFo
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Nov 21, 2026
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 31s —— View job


Review of the latest commits (4a9bb521, c34c8c39 and the Android/loaded-element commits before them)

Verdict: no new findings. I reviewed by code inspection only. I did not build or run anything. I also couldn't diff against origin/master because the checkout is shallow, so I read the latest commits directly.

Routing through FrameworkTheming (c34c8c39)

  • Deleting AccentColorResourceUpdater and moving the writes into ResourceResolver.UpdateSystemAccentColorAndBrushResources fits the MUX UpdateColorAndBrushResources flow. It runs from CoreServices.Theming after the high-contrast pass, as the remarks require.
  • Skipping OverrideAlpha entries leaves the system-color entries to the existing high-contrast path. The accent colors keep their own alpha. SystemColorHighlightColor stays independent of the accent, as before.
  • The brush is recreated on each update instead of mutated. This matches MUX, and {StaticResource} consumers keep the old brush. Both are noted in the comments.
  • OnAccentColorChanged forces OnThemeChanged(forceUpdate: true). That is justified because an override can change the shades while the accent stays the same.
  • OnSystemThemeChanged calls OnThemeChanged and UISettings.OnColorValuesChanged only when RefreshAccentColor() reports no change. The accent-changed path already does both once, so there is no double notification.

Other recent commits

  • 4a9bb521 only adds the Theming entry to build/winui-sync/areas.json.
  • The Android refresh on resume and configuration change reuses the same AccentColorChanged path, so it adds no new notification route.

Still operational, not code

  • The skia screenshot diffs from build 243290 (2458 on both Linux and Windows) are almost the entire suite, which points to baseline drift rather than accent changes. They need re-checking after this rebase and the baselines accepted before merge.
  • The Android refresh hasn't been run on a device. The PR description already says so.
    · branch dev/mazi/accentcolor

@mergify

mergify Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 28s —— View job


Review of the latest commit (c8de0ccc)

Verdict: no new findings. I reviewed by code inspection only. I did not build or run anything.

  • The commit only changes three XAML comments in SystemResources.xaml. They now say the SystemListAccent*Color values are "updated at runtime from FrameworkTheming" instead of naming AccentColorResourceUpdater, which c34c8c39 deleted. No resource values or logic changed.
  • I posted no inline comments.

Still operational, not code: the skia-windows and skia-linux screenshot diffs from earlier builds still need review. The baselines need accepting in CI before merge.
· branch dev/mazi/accentcolor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 248191 found UI Test snapshots differences: skia-linux-screenshots: 217, skia-windows-screenshots: 253

Details
  • skia-linux-screenshots: 217 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • Buttons.png-dark
    • Accessibility_Showcase.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedVisualsTestbedPage.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • AnimatedBackVisualSourceSamplePage.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • Basics.png-dark
    • Basics.png
  • skia-windows-screenshots: 253 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AutomationPropertiesExtensions_Role.png-dark
    • AutomationPropertiesExtensions_Role.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • AutomationProperties_AutomationId.png
    • AutomationProperties_StructureAndProps.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png

@github-actions github-actions Bot added the platform/x11 🐧 Categorizes an issue or PR as relevant to X11 label Nov 21, 2026
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 29s —— View job


Review of the Linux/X11 accent extension and docs commits

Verdict: no blockers, one low-severity finding. Review was by code inspection only. I did not build or run anything. The checkout is shallow with no merge base against origin/master, so I read the newest commits directly: the X11 extension, the sample tweak and the docs.

Issues by severity: 0 high, 0 medium, 1 low (posted inline).

What looks right in LinuxAccentColorExtension

  • It checks the portal version (>= 2) and handles a missing optional accent-color key (NotFound) gracefully.
  • Out-of-range components are treated as "no accent set", as the portal spec says.
  • The setter marshals to NativeDispatcher.Main, and only compares Accent since the shades derive from it.
  • It uses EventHandler, guards logs with IsEnabled, and catches exceptions in the watch callback.

Cross-cutting notes

  • Test gap: ToPalette (struct shape, out-of-range, wrong types) has no unit or runtime coverage. It is private in the X11 project, so this is hard to test as written. It would be worth extracting the parsing into a small internal helper if you want to pin the portal contract.
  • Portal variant wrapping: I could not verify whether the Tmds binding's ReadOneAsync and the SettingChanged tuple hand back the inner (ddd) value or a still-wrapped variant. ToPalette assumes the inner struct. A test on a real GNOME/KDE session would confirm this.
  • Not validated: the Linux path is not exercised by the PR's runtime tests, which ran on Skia desktop on Windows. Linux needs a manual check using SystemAccentColorSample while changing the accent in desktop settings.
  • Operational: the screenshot diffs from build 248191 (217 Linux, 253 Windows) still need review and baseline acceptance in CI before merge.
    · branch dev/mazi/accentcolor

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 248202 found UI Test snapshots differences: skia-linux-screenshots: 218, skia-windows-screenshots: 273

Details
  • skia-linux-screenshots: 218 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • Accessibility_Showcase.png-dark
    • AppWindowTitleBar Properties.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedBackVisualSourceSamplePage.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • Basics.png-dark
    • Basics.png
    • CornerRadiusControls.png-dark
  • skia-windows-screenshots: 273 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AutomationProperties_StructureAndProps.png-dark
    • Buttons.png-dark
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • AutomationPropertiesExtensions_Role.png-dark
    • AutomationPropertiesExtensions_Role.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • AnimatedVisualsTestbedPage.png
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_StructureAndProps.png
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png

Drop an initial accent read that reaches the UI thread after a
SettingChanged value, and own the DBus connection, disposing it on
the early-exit paths.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtzaC5dx4oo2ZVG5BHB
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 22s —— View job


Review of the latest commit (65be31c3, X11 accent portal fixes)

Verdict: no new findings. I reviewed by code inspection only. I did not build or run anything, and the Linux path has not been exercised on a real GNOME/KDE session.

Issues by severity: 0 high, 0 medium, 0 low. I posted no inline comments.

Fixes checked in LinuxAccentColorExtension

  • Stale initial read: UpdatePalette(value, isInitialRead) hops to the UI thread first, then checks _settingChangeApplied. A watched value sets the flag, and a later initial-read result is dropped. Because the flag is read and written only on the UI thread, both enqueue orders end on the newest value.
  • Connection ownership:
    • _connection is set once the watch is registered, so the connection stays alive for the app lifetime.
    • It is disposed on the portal-version-below-2 path.
    • It is also disposed when setup throws before the watch exists (_connection is null in the outer catch).
    • It is not disposed when only the initial read fails, so the watch keeps working.
  • Catch clauses: the broad catches are acceptable here, for the reasons you gave on the threads.
    • Init is fire-and-forget, so an escaping exception would go unobserved.
    • The watch callback must not throw into the DBus dispatch.
    • A failed initial read should only log a warning and keep the default accent.
  • Portal handling: the NotFound case, the (ddd) shape check and the out-of-range-means-unset handling look correct.

Still open

  • Linux validation is manual. Run SystemAccentColorSample on a portal-enabled desktop and change the accent in system settings. I could not confirm whether the Tmds binding hands back the inner (ddd) struct or a still-wrapped variant in ReadOneAsync and SettingChanged. ToPalette assumes the inner struct.
  • ToPalette has no unit test. It is private in the X11 project. If you want the portal contract pinned, extract the parsing into a small internal helper.
  • The skia screenshot diffs from build 248202 (218 Linux, 273 Windows) still need review and baseline acceptance in CI before merge.
    · branch dev/mazi/accentcolor

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@MartinZikmund
MartinZikmund merged commit 667f1fa into master Nov 22, 2026
51 of 55 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/accentcolor branch November 22, 2026 19:15
@nventive-devops

Copy link
Copy Markdown
Contributor

The build 248269 found UI Test snapshots differences: skia-linux-screenshots: 262, skia-windows-screenshots: 286

Details
  • skia-linux-screenshots: 262 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png-dark
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • AnimatedVisualsTestbedPage.png-dark
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • BenchmarkDotNet.png-dark
    • Basics.png-dark
    • BenchmarkDotNet.png
    • Basics.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AppWindowTitleBar Properties.png
    • AppWindowTitleBar Properties.png-dark
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • BasicAcrylicBrushTest.png-dark
    • BreadcrumbBarPage.png-dark
    • BasicAcrylicBrushTest.png
    • BreadcrumbBarPage.png
    • Border_CornerRadius_Binding.png-dark
  • skia-windows-screenshots: 286 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AppWindowTitleBar Properties.png-dark
    • AppWindowTitleBar Properties.png
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • CenteredGridinGridwiththreefixedsizechildren.png-dark
    • CenteredGridinGridwiththreefixedsizechildren.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • AnimatedVisualsTestbedPage.png
    • ColorPickerSample.png-dark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/build Categorizes an issue or PR as relevant to build infrastructure area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform platform/x11 🐧 Categorizes an issue or PR as relevant to X11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uno Platform doesn't follow accent colour on macOS Support system accent color retrieval with UIColorType.Accent

6 participants