Skip to content

welcome: use standard macOS controls on macOS 26 - #8240

Open
stas-grgv wants to merge 1 commit into
utmapp:mainfrom
stas-grgv:welcome/macos-native-layout
Open

stas-grgv wants to merge 1 commit into
utmapp:mainfrom
stas-grgv:welcome/macos-native-layout

Conversation

@stas-grgv

Copy link
Copy Markdown

On macOS 26 the welcome view still shows the 150pt tiles it shares with iOS. Next to the Liquid Glass sidebar and toolbar they read as an iPad layout, and the full-width Server button has a style of its own.

This changes only the macOS 26 path of VMPlaceholderView:

  • the app icon and the "Welcome to UTM" title
  • Create a New Virtual Machine (prominent) and Open Existing Virtual Machine as large standard buttons of the same width
  • User Guide, Support and Server as borderless links below them

The actions and the localized strings are unchanged. iOS, visionOS and macOS 12–25 keep the tiles. The new controls get identifiers in UTMAccessibilityID, and VMLibraryFlowTests gets a UI test for them.

Before (macOS 26) After, light After, dark
before after, light after, dark

This branch and #8239 both add a test to Tests/UITests/macOS/VMLibraryFlowTests.swift; this one is inserted in the middle of the file so the two branches merge cleanly in either order.

Testing

Tested by an AI agent on a MacBook with Apple M5, macOS 26.7.3 (25G342), Xcode 27.2.

  • New UI test VMLibraryFlowTests/testWelcomeViewButtonsOpenTheirScreens, on the test build with an empty library so the welcome view shows: Create opens the wizard (then cancelled), Open shows the open panel (closed with Escape), Server opens the UTM Server window, and User Guide and Support are present and hittable. The links are not clicked because they open the default browser; their URLs are the ones the tiles use.
  • The "after" screenshots come from that UI test, in the dark system appearance and in light mode (-NSRequiresAquaSystemAppearance YES). The "before" screenshot is the current release on macOS 26.
  • ./scripts/test_utm.sh: 288 tests, 0 failures (the 16 VMLifecycleTests are skipped: they need the signed host of -v).
  • ./scripts/test_utm.sh -only-testing:UTMUITests: 13 of 14 pass, including this test and the one in library: reopen the library window from File > New and Open #8239. testSettingsSaveAndCancelAreReachable failed once on the wizard's drive page and passes when run alone.
  • ./scripts/test_utm.sh -s (iOS): 217 tests, 0 failures. -only-testing:UTMUITests-iOS: 7 tests, 1 skipped; the two tests that run first after a fresh install fail on a cold start and pass when run alone.
  • sh Tests/Static/run_all.sh: 0 problems.
  • Not tested on macOS 12–25: the new view is behind #available(macOS 26, *) and those versions keep the existing code path.

Note for other runs: these UI tests type into fields and press Cmd-W, so they pass only while an English input source is active. With a Cyrillic layout active the app receives Cyrillic letters and Cmd-W does not match the Close menu item, which looks like a focus bug.

The welcome view shares its 150pt tiles with iOS. On macOS 26 they read
as an iPad layout and look out of place next to the Liquid Glass sidebar
and toolbar, and the Server button uses a different style from the rest.

On macOS 26 and later, show the app icon and title, the two main actions
as large standard buttons (Create as the prominent one), and User Guide,
Support and Server as borderless links. The actions and localized strings
are unchanged. iOS, visionOS and older macOS keep the existing tiles.

The new controls get accessibility identifiers, and a UI test checks that
Create, Open and Server still open the wizard, the open panel and the
server window.

Assisted-by: Claude:claude-opus-5-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant