From 7f6e7b4143f52b9f6fbd9bcf7dc6a2c90d689205 Mon Sep 17 00:00:00 2001 From: Avery Felts Date: Fri, 20 Nov 2026 08:26:17 -0700 Subject: [PATCH] feat(library): game settings from the Collection grid A game's settings (Graphics, Runtime, Advanced, Presentation) opened only from the front card spread's gear, so a game far down a large library had to be paged to first (#799). Each Collection card now has a gear in its corner that selects the game and opens the same settings. --- app-gpui/src/ui.rs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/app-gpui/src/ui.rs b/app-gpui/src/ui.rs index e16baad9..46bd9c85 100644 --- a/app-gpui/src/ui.rs +++ b/app-gpui/src/ui.rs @@ -5364,6 +5364,38 @@ impl MetalSharpApp { linear_color_stop(rgba(0x050708e6), 1.0), )), ) + // The game's settings (Graphics, Runtime, Advanced, Presentation), as the front card + // spread's gear opens them, without paging to the game there (#799). In the corner, so the + // narrowest cards keep their engine and Play on one row. + .child( + div() + .id(("collection-settings", index)) + .absolute() + .top(px(layout.scaled(8.0))) + .right(px(layout.scaled(8.0))) + .size(px(layout.scaled(28.0))) + .flex() + .items_center() + .justify_center() + .rounded(px(999.0)) + .border_1() + .border_color(rgb(theme.border())) + .bg(rgba(control_bg << 8 | 0xd8)) + .cursor_pointer() + .hover(|style| style.opacity(0.85)) + .on_click(cx.listener(move |this, _, _, cx| { + cx.stop_propagation(); + this.select_game(index, cx); + this.open_game_settings(cx); + this.load_game_tuning(cx); + cx.notify(); + })) + .child(control_icon( + "launch-settings.svg", + layout.scaled(15.0), + theme.control_text(), + )), + ) .child( div() .absolute()