Repository navigation
Trial: official Uno 7.2.0-dev.4 with the native Wayland host - #247
Draft
MemerGamer wants to merge 10 commits into
Draft
MemerGamer wants to merge 10 commits into
MemerGamer wants to merge 10 commits into
Conversation
First official Uno build that contains the native Wayland Skia host (upstream unoplatform/uno#25503, commit 1ee31e1806): Uno.WinUI 7.2.0-dev.4 on nuget.org. Switches LinuxFiles from the MemerGamer/uno fork packages (6.7.135-wayland.10) to the official 7.2.0-dev.4 cohort as a CI trial for #227. - global.json: Uno.Sdk 6.7.30 -> 7.1.0-dev.63 (no Uno.Sdk 7.2 dev is published on nuget.org yet; 7.1.0-dev.63 is the closest build). Its UNOB0004/UNOB0005 version check rejects the 7.2 cohort, so the existing guard empties PkgUno_WinUI before the check reads it. - Directory.Packages.props: Uno.WinUI/Uno.WinRT 7.2.0-dev.4; runtime packages renamed upstream (Uno.WinUI.Runtime.Skia.X11/MacOS -> Uno.WinUI.Runtime.X11/MacOS) plus the new Uno.WinUI.Runtime.Wayland. - The Skia composition backend moved to Uno.WinUI.Composition.Skia in Uno 7; referenced explicitly because implicit Uno packages are disabled in this repo. HarfBuzz native assets are no longer pulled by the runtime packages; referenced per OS for text shaping. - SkiaSharp 3.119.0 -> 4.158.1, Svg.Skia 3.7.0 -> 5.2.5 (Uno 7.2 needs SkiaSharp 4.x). - Program.Linux.cs: X11RenderingBackend.Default was removed upstream and the fork's RenderingBackend() is ForceRenderingBackend(); only force a backend when the selector did not pick Default. - FilesUnoX11NativeDrag=false: the fork's X11 drag-out to other apps (start of drafts #4/#5) is not upstream; official X11 host returns false from StartNativeDrag. Files keeps its own X11 drag source. - CI: removed the three fork-package steps (offline downloader test, fetch, cache clear); restore now comes from nuget.org. - VirtualizingWrapGrid probe prefix 6.7. -> 7.2. Kept for an easy revert: nuget.wayland.config, build/fetch-uno-wayland.sh, build/uno-wayland-packages.sha256 and the pin docs are untouched and inert. AUR/Nix are not touched. macOS head switched to the same official versions but has no macOS CI here.
…ohort-aware The build-linux-x64 check runs in the Nightly Linux workflow, which still called the fork's fetch script and failed in seconds because 7.2.0-dev.4 has no committed pin set. The nightly job now restores from nuget.org. publish.sh only runs the fork fetch/clear when Directory.Packages.props still pins a fork cohort (X.Y.Z-wayland.N), so both modes keep working.
SKCanvas.DrawText(text, x, y, font, paint) is obsolete in SkiaSharp 4.x and the repo treats warnings as errors. The SKTextAlign.Left overload keeps the previous alignment.
Uno 7.2's XAML generator validates that a Setter target is a real DependencyProperty; source-declared [GeneratedDependencyProperty] properties are accepted only when the attribute's full metadata name is Uno.UI.Xaml.GeneratedDependencyPropertyAttribute (the output of other generators is invisible to it). The repo's shim declared the attribute in CommunityToolkit.WinUI, so every style Setter on a generated DP failed with UXAML0001 (e.g. ThemedIcon.OutlineIconData). Move the shim attribute (both copies: Files.App.Controls/Uno and the Files.App desktop shim) into the Uno.UI.Xaml namespace and switch the usings. Files.Core.SourceGenerator matches the attribute by short name, so its output is unchanged.
…ation enum - CommunityToolkit.WinUI.* 8.2.251219 -> 8.3.261203: the 8.2 line was built against the 6.x Uno assemblies and its member signatures still name the old 'Uno' assembly, which 7.x no longer ships (CS0012 on Colors/ToColor/CoreDispatcher in app code and in the generated BindableMetadata; missing FindDescendant/Debounce extensions). - Uno.Microsoft.Xaml.Behaviors.WinUI.Managed 2.4.2 -> Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUI 3.0.3: the 2.4.2 package is built for 6.x type identities, so BehaviorBase no longer converts to DependencyObject (CS0039/CS1503). - GridLayoutPage: the ItemsPanelTemplate(Func<Panel>) factory constructors are removed in Uno 7. Panels are now declared through XamlReader.Load markup with the orientation and cell size baked in; the grouped header predicate travels through an attached property on the owning ItemsControl and the panel resolves it from its parent chain at first measure. - Window_Activated: compare with WindowActivationState; the CoreWindowActivationState cross-enum comparison no longer compiles.
The Uno-flavored CommunityToolkit 8.x line is still compiled against the pre-7.0 Uno assemblies: member signatures still name the removed 'Uno' assembly (upstream unoplatform/uno#24297, open). This removes the last uses of the affected APIs from Files.App: - StickyHeaderBehavior now derives from Microsoft.Xaml.Interactivity's 7.x-native Behavior<FrameworkElement> instead of the toolkit's BehaviorBase, restoring the DependencyObject identity that the XAML generator's Interaction.Behaviors codegen expects (CS1503/CS0039). - String.ToColor and ColorHelper.ToHex are replaced by local ParseColor/ToHexString helpers (CS0012 on 'Color'). - DispatcherQueueTimer.Debounce and FindDescendant(name) move to local extensions (CS1061). - The BindableTypeProviders generation is disabled for the desktop head (the generator still emits 'Uno' assembly references when stale toolkit packages are in the graph, per #24297). Files uses compiled x:Bind, so the reflection providers are not needed.
Microsoft.Xaml.Behaviors.Interactivity 3.0.3's Behavior<T> no longer has the toolkit's bool Initialize()/Uninitialize() overrides (CS0115 on Uno 7.2); override OnAttached()/OnDetaching() instead. AssignAnimation keeps its own success signal and the property-change paths retry it when the header is not realized yet, so attaching can always succeed.
- Toolbar.xaml.cs: FindDescendantByName was declared as an extension method inside the non-static Toolbar class (CS1106); make it a plain static method and call it with the element argument. - MacOSSidebarIcons.cs and PreviewImageDecoder.cs: SkiaSharp 4 obsoleted the paint-based DrawBitmap overloads (CS0618; the macOS job builds Files.Platform.MacOS with warnings as errors). Use the SKSamplingOptions overload with nearest-neighbour sampling, which is exact for these 1:1 blits.
…unce CI round at f527f53+ showed the remaining break classes (both heads agree on the same set): - XamlInteractivity: the pinned Uno.Microsoft.Xaml.Behaviors.Interactivity 3.0.3 predates Uno's Behavior re-rooting: its shipped Behavior derives System.Object (verified in the DLL metadata), while Uno 7.2's XAML generator and BehaviorCollection : DependencyObjectCollection require behaviors to be DependencyObjects (CS0039 on the DependencyProperty callback cast, CS1503 from the generator and from IBehaviorCollection.Remove). Move to 4.0.1, which is built against the reworked branch (Behavior : DependencyObject, Uno.WinUI >= 7.0.32, net10.0 TFMs, Interactions types merged in). The unused CommunityToolkit.WinUI.Behaviors package (no code or XAML references it) is dropped together with its stale transitive Uno.Microsoft.Xaml.Behaviors.WinUI.Managed 2.4.2. - Color parsing: the remaining CommunityToolkit string.ToColor() call sites (StringToBrushConverter, FileTagItem, AppThemeResourcesHelper) fail with CS0012 because the toolkit's 8.x line still types Color in the removed 'Uno' assembly (unoplatform/uno#24297). Use the local ParseColor helper from f527f53, which returns Windows.UI.Color. - Debounce: the local DispatcherQueueTimer extension added in f527f53 made every call ambiguous with CommunityToolkit.WinUI's Debounce (CS0121 in 7 files), whose parameter types do bind on 7.2. Remove the local copy and use the toolkit method again. - FindDescendant: NavigationToolbar.xaml.cs lost the CommunityToolkit using that every other FindDescendant caller still has (CS1061); add it back.
Toolbar.xaml.cs called DispatcherQueueTimer.Debounce through the local Files.App.Extensions copy; with that removed in the previous commit the call sites need the CommunityToolkit.WinUI using that every other Debounce caller already has.
35 of 43 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #227.
Moves LinuxFiles from the MemerGamer/uno fork packages (
6.7.135-wayland.10) to the first official Uno build with the native Wayland Skia host (upstream unoplatform/uno#25503, commit1ee31e1806):Uno.WinUI 7.2.0-dev.4on nuget.org (nuspec commit11b53b66f3, a descendant of1ee31e1806). Draft trial: the point is to see what the 6.7 → 7.2 major-line jump breaks in CI, not to merge immediately.What changed
global.json: Uno.Sdk6.7.30→7.1.0-dev.63— no Uno.Sdk 7.2 dev exists on nuget.org yet (Sdk dev builds are published per release branch; the 7.2/master line has not shipped one).7.1.0-dev.63is the closest published Sdk (built 2026-12-03, understands the renamed 7.x runtime packages and the net10.0-desktop TFM). ItsUNOB0004/UNOB0005version check expectsUno.WinUI 7.1.0-dev.701, so the existing_FilesAllowUnoWaylandPackagesguard (unchanged mechanism, widened cohort condition) emptiesPkgUno_WinUIbefore the check reads it.Directory.Packages.props:Uno.WinUI/Uno.WinRT→7.2.0-dev.4; runtime packages renamed upstream:Uno.WinUI.Runtime.Skia.X11→Uno.WinUI.Runtime.X11,Uno.WinUI.Runtime.Skia.MacOS→Uno.WinUI.Runtime.MacOS, fork packageUno.WinUI.Runtime.Skia.Wayland→ officialUno.WinUI.Runtime.Wayland(Wayland stays the default Linux host viaFilesUseUnoWayland; X11 remains the fallback; the macOS head moves to the same official version — no macOS CI here to verify).Uno.WinUI.Composition.Skiais now referenced explicitly (implicit Uno packages are disabled in this repo). HarfBuzz native assets are also no longer pulled transitively → referenced per OS for text shaping.SkiaSharp3.119.0→4.158.1,Svg.Skia3.7.0→5.2.5(7.2's composition package requires SkiaSharp 4.x; 5.2.5 is the Svg.Skia line built for it).Program.Linux.cs: upstream removedX11RenderingBackend.Defaultand renamed the fork'sRenderingBackend()toForceRenderingBackend(); a backend is now forced only whenFILES_RENDERERasks for one.FilesUnoX11NativeDrag=false: the fork's X11 drag-out to other apps is not upstream (official X11 host hardcodesStartNativeDrag => false), so Files goes back to starting its own X11 drag source on X11; on Wayland the official host offers drags itself.ci-linux.yml): removed the three fork-package steps (offline downloader test, verified fetch, cache clear) — restore now comes from nuget.org.VirtualizingWrapGridprobe prefix6.7.→7.2.(runtime fallback probe only).Follow-up commits (what the jump broke in CI, and the fixes)
Eight CI rounds (Linux build + macOS) iterated to green; the break classes, in order of appearance:
GeneratedDependencyPropertyattribute renamed in 7.2 (07b582b); activation enum renamed; toolkit package references; SkiaSharp 3 → 4 obsoleteDrawText(9ceff0a, c8a3322).Unoassembly (upstream #24297): localParseColor/ToHexStringhelpers replaceToColor/ToHex,StickyHeaderBehaviormoves off the toolkit'sBehaviorBase, and the BindableTypeProviders generation is disabled (f527f53).StickyHeaderBehaviorlifecycle: 7.xBehavior<T>overridesOnAttached/OnDetachinginstead ofInitialize/Uninitialize(3462ce1).FindDescendantByNamecan not be an extension inside the non-staticToolbarclass (CS1106); SkiaSharp 4DrawBitmapneeds theSKSamplingOptionsoverload, which the macOS job's warnings-as-errors turns into a build break (de8c997).Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUI3.0.3 predates Uno'sBehaviorre-rooting — its shippedBehaviorstill derivesSystem.Object(verified in the DLL metadata), so the 7.2 XAML generator'sDependencyObjectconversions andBehaviorCollection(: DependencyObjectCollection) reject it (CS0039/CS1503). Fixed by moving to 4.0.1 (built from the reworked branch:Behavior : DependencyObject,Uno.WinUI >= 7.0.32, net10.0 TFMs, Interactions types merged in) and dropping the unusedCommunityToolkit.WinUI.Behaviorspackage together with its stale transitiveUno.Microsoft.Xaml.Behaviors.WinUI.Managed2.4.2 (359a9b1).string.ToColor()sites replaced with the localParseColor(CS0012 onColor); the localDebounceduplicate removed (CS0121, the toolkit method's signature binds fine on 7.2);Toolbar/NavigationToolbargiven theCommunityToolkit.WinUIusing their extension calls need (359a9b1, 7ab0193).Fork plumbing kept for an easy revert (inert)
nuget.wayland.config,build/fetch-uno-wayland.sh,build/uno-wayland-pins.py,build/uno-wayland-packages.sha256,build/clear-uno-wayland-cache.sh,build/tests/test-fetch-uno-wayland.pyanddocs/linux-port/wayland-packages.mdare untouched and no longer wired into the build. A later, separate change would remove them plus the AUR/Nix references to the fork (packaging/linux/aur/linuxfiles/PKGBUILD,scripts/linux/gen-aur.sh, metainfo) — deliberately not touched here, per the issue's scope.CI state
Green as of head
7ab019356(2026-12-06):build-linux-x64(Nightly — fullpublish.sh --rid linux-x64 --tarballof the Wayland-default desktop chain) andbuild-macos(Platform.MacOS build with warnings-as-errors, then the unsigned .app publish) both pass.publish-nightlystays skipped while the PR is a draft. Only the build is verified; nothing has run on real hardware yet.Fork-only features lost by moving to official Uno
Compared the fork branch
wayland/host(and its merged PRs #1–#3, open drafts #4 #5 #7 #8) against upstreamunoplatform/unoat11b53b66f3(the7.2.0-dev.4commit), read-only. The native Wayland host itself is upstream since #25503; the table covers what is not.DataView.RequestedOperationreflects the X11 drag source's request, refreshed as modifiers changeX11DragDropExtensionhardcodes Copy with aTODO: support other actionsWaylandConfigureSchedulerwith generations and presentation holds). X11: no — upstream still has the "ticks as milliseconds" timer bugContainerFromItemperfClear; container index checked before fetching the backing itemListViewBaseis unchangedX11DragDropExtension.StartNativeDragreturnsfalseFilesUnoX11NativeDrag=false), which follows the pointer outside the window; drag-out still works but is the pre-fork mechanismantialias/hinting/rgba, LCD (subpixel) AA only where the display server reports the panel orderUNO_SKIA_TEXT_GAMMA=uniformNet: the trial loses X11 drop Move semantics, the X11 resize-pacing fix, the select-all performance work and desktop font/LCD text control. Everything else the fork carried — the Wayland host, its drag-out, clipboard file lists (Files-side), client decorations — is upstream now or lives in Files, not Uno.
Recommendation
Move now, in two steps.
6.7.135-wayland.10) should stay published until the first real 7.2-based build has run on Hunor's machine, then be retired.Uno-assembly-typed signatures are called) and the new Wayland host's drag/clipboard paths are the two things a smoke run must confirm.What is lost (table above) argues for upstreaming, not for staying on the fork: X11 drop Move semantics and the desktop font/LCD work are self-contained upstream PRs; the select-all and resize-pacing items are small, already-measured regressions. Staying on
6.7.135-wayland.10means carrying a private Uno fork forever with no upstream path.Testing
GitHub CI only (no local builds, per the night-job rules): the
build-linux-x64job builds the full desktop chain on Ubuntu 24.04 with Wayland as the default host, andbuild-macosbuilds Platform.MacOS with warnings-as-errors plus the unsigned .app publish. API-break fixes landed as follow-up commits on this branch until both went green. Runtime behaviour on real hardware is still untested.🤖 Generated with GLM via pi