Repository navigation
MetalSharp 1.4: game settings for every library, MetalVR headsets, Liquid Glass, MetalSharp Wine 8.0 - #806
Merged
Conversation
#797) - The library header starts with the sidebar toggle: the MetalSharp logo and name before it are gone. - Retina (RetinaMode and its DPI) reaches a game in a bottle of its own: at launch the bottle gets the game's own setting, or else Settings > Graphics', imported only when its user.reg differs. Game settings take "retina": "default", "on" or "off". The app's per-game control and the restart prompt are still to come.
…VR headsets - Game settings: openglRenderer (WineMetalGL or Zink, SharpGL_Switch) and vulkanRenderer (MoltenVK or KosmicKrisp, SharpVK_Switch), set in the environment of the game MetalSharp starts. - metalHudElements: the Metal HUD's metrics (MTL_HUD_ELEMENTS, validated against Apple's names), applied with MTL_HUD_ENABLED by ms_config_apply_metal_hud_env from every store's game launch, not only Steam's. - MetalVR: the chosen headset and its trusted ALVR client (GET/POST /metalvr/headset) start the VR server with the right driver, --headset and --trust; POST /metalvr/setup runs a headset's setup steps. - A bottle Wine has not made yet needs no Retina write when Retina is off (#797).
…quid Glass, motion - Game settings: one panel for Steam, GOG, Epic, Battle.net, Ubisoft, Rockstar and Windows programs, laid out like Settings (shared setting_row, switch, choice and nav_item on PagePalette): Graphics (msync, MetalFX, x87, MoltenVK ray tracing, OpenGL and Vulkan renderers), Runtime (Metal HUD with its metrics, launch executable, Steam emulator, controller input), Advanced (standalone app, launch arguments, environment, DLL overrides, Windows version, CPU cores, low priority) and Presentation (name, display mode, resolution, frame rate limit, per-game Retina, #797). - A game on the MetalVR route: a Headset tab (the headset list, saved for every MetalVR game) with a guided setup per headset from MetalVR's guides, and the msync, MetalFX and Metal HUD it keeps. - Liquid Glass on macOS 26 and later (Settings > General, off in Low Performance Mode): a blurred window, frosted header, hero controls, shelf and footer, and translucent panels. - Motion: panels, tabs and the hero's art ease in (ease-out quint); the sidebar slides softer. - Settings > Retina: while Wine Steam runs with the old setting, a Restart Wine Steam button beside it (#797).
The desktop blurred through the window, the hero's art in it, and NSGlassEffectView surfaces GPUI marks as it paints (liquid_glass.rs): panels, controls, the primary action and the selected card, each its own strength. Panels (game settings, Settings, the VR setup) show over the art alone; the sidebar, the runtime switch, the launcher buttons and the empty library pages are glass too.
A veil under the glass evens a bright or dark desktop toward the theme, and the footer's, search field's and runtime switch's quiet text is white on glass. The launcher button and its options are one capsule again, the docked sidebar's glass runs to the window's bottom with the footer beside it, the shelf's arrows draw over the cards, panels are deep glass, and the hero's art follows the window's width while it is resized.
The theme's page color and accent tint the glass (veil, panels, controls, deep glass), and a selected surface glows the accent (electric blue on the default theme). The sidebar is a pane of deep glass floating over the page, wide enough to wrap the header's launcher button, with larger rows. The primary action carries its own light over the glass, which darkens itself over bright art. The shelf's previous arrow stays at its left.
Under Liquid Glass the sidebar is a pane of glass beside the page (never over it), as wide as the header's launcher button reaches; the footer is a bar of glass across the window's bottom; the Logs page has no fill of its own.
The primary action is the theme's accent, lit, with text that reads on it; the header's and hero's controls and the footer carry a wash of the accent over their glass. The footer is the sidebar's glass. The window stops at 720x640, and a narrow sidebar says Programs.
…elected The launcher button's label no longer depends on the width the sidebar leaves the page (the sidebar ends where that button does: the two chased each other). A glass view is moved only when its place changes, so a turned card's frame no longer keeps AppKit rebuilding the window's mouse tracking. The primary action's light is GPUI's alone, and the launcher capsule's hover follows its shape.
It scales in both directions together (NSWindow.contentAspectRatio, 720:640), so widening it at its smallest height no longer squashes the shelf's cards.
The shelf's cards are sized by the width they share, but no taller than the hero's minimum leaves them; with the cards at their smallest, the hero gives up the rest down to what its title and buttons need. Widening the window at its smallest height no longer pushes the cards under the footer.
This reverts commit 8d7c442.
The spacing and the hero's minimum ease toward their compact values over the 240 points of height before compact turns on, instead of jumping there: the jump gave the cards room back mid-shrink, and they grew.
Five cards, and up to four more on each side where the window has the room (LibraryLayout::dock_slots, always odd); paging, the arrows and the arch follow that count.
The shelf takes the height the hero leaves, so it always reaches the footer, and a surface's glass is clipped to what clips its element (a scrolling page), so it never shows under the footer.
Under Liquid Glass the graphics route, theme, launcher, art and collection menus are deep glass under a veil of the theme's menu color. The shelf's arrows are 46 by 80.
A download is removed once the runtime is installed from it, instead of staying in downloads/ as a second copy; at start, a download from another MetalSharp Wine release and an app an interrupted swap set aside (<app>.old) are removed. With no download, the installed app of this release is its own source, so the runtime switch and setup still find it.
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.
MetalSharp 1.4: one game settings panel for every library, MetalVR headsets, Liquid Glass, and MetalSharp Wine 8.0.
Game settings
ui_game_settings.rs; the row, switch, choice and navigation helpers now live onPagePaletteand Settings uses them too).SharpGL_SwitchandSharpVK_Switch, kept in/game-tuning(openglRenderer,vulkanRenderer) and set where MetalSharp starts the game.metalHudElements, validated against Apple'sMTL_HUD_ELEMENTSnames), launch executable, Steam emulator, controller input. The HUD is now applied from every library's game launch (ms_config_apply_metal_hud_env), not only Steam's.MetalVR
~/.metalsharp/metalvr/headset.json(GET/POST /metalvr/headset) for every MetalVR game.POST /metalvr/setup): install MetalVR 0.2.1 (checked against its SHA-256), let macOS show the headset's display, SteamVR, pairing, and trusting a streamed headset's ALVR client.--driver,--headset,--trust).Liquid Glass (macOS 26 and later)
glass/MSGlass.swift, compiled bybuild.rs;liquid_glass.rs): the desktop blurred through the window, the hero's art, andNSGlassEffectViewsurfaces that GPUI marks as it paints, in several strengths (panels, controls, the primary action, the selected card, deep glass for settings and dropdowns).Layout and motion
Issues
WINEMAC_FKEYS=windowsmakes the top row F1-F12 while a program is active, in MetalSharp Wine 8.0; set it in a game's Advanced settings (environment variables).Other
MS_WINE_RELEASE_VERSION, Release CI'sMETALSHARP_WINE_TAG).Testing
make testinapp/src-c(new cases ingame_tuning_test.cfor the renderers and HUD metrics) andcargo testinapp-gpui(146 tests, new layout cases inlibrary_layout.rs) pass.