From 6ed8efc56a0cb14800f603afaff836538ca7fa55 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 28 Nov 2026 00:40:04 +0000 Subject: [PATCH 1/2] Format pane colour rows open their colour menu on a click of the opener The popover hung from the opener with the manual trigger, so a click on a kept-binding colour row never opened it; it now opens on a click as every other kept popover does, under a salt of its own so it does not share the row field's id. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/panels/color_row.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/panels/color_row.rs b/crates/ui-egui/src/panels/color_row.rs index 9a9ecc6a8..694d4ef78 100644 --- a/crates/ui-egui/src/panels/color_row.rs +++ b/crates/ui-egui/src/panels/color_row.rs @@ -2,7 +2,7 @@ use craft::color_ui::ui::{ColorPick, ThemeColorMenu}; use craft::ui::buttons::Button; -use craft::ui::contract::{Bind, BodyCx, FieldLayout, Props as _, Show as _, ShowContainer as _}; +use craft::ui::contract::{Bind, BodyCx, FieldLayout, Props as _, Show as _, ShowContainer as _, Trigger}; use craft::ui::controls::disclosure::DisclosureGlyph; use craft::ui::form::Field; use craft::ui::popover::Popover; @@ -80,8 +80,8 @@ pub(crate) fn color_row_named( }); field.settle(|_, output| { let mut popup = Popover::new(Word::plain("Color"), Bind::kept().reset(false)) - .id_salt(&key) - .opened_by(&output.response) + .id_salt(&format!("{key}:menu")) + .overlay(|overlay| overlay.opened_by(&output.response, Trigger::Click)) .show(ui, |ui, cx| color_menu(app, ui, cx, &key, none)); let picked = popup.settle(|_, pick| pick.take()).flatten(); let answer = take_color_answer(app, &key); From 1d710d36977a45055576b923d9a10e5d626c1c30 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 28 Nov 2026 00:40:06 +0000 Subject: [PATCH 2/2] Picture Format Color menu keeps Recolor in rows, so the menu fits the window The Recolor grid laid each preset out as a full-width tile in one column, which pushed Set Transparent Color thousands of pixels below the screen; the grid now lays its tiles out in seven columns. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/ribbon/picture_format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/ribbon/picture_format.rs b/crates/ui-egui/src/ribbon/picture_format.rs index acafd9ee7..726335f20 100644 --- a/crates/ui-egui/src/ribbon/picture_format.rs +++ b/crates/ui-egui/src/ribbon/picture_format.rs @@ -82,7 +82,7 @@ pub(crate) fn picture_format(app: &mut SlideApp, row: &mut RibbonRow<'_>) { let sc = app.color_scheme(); let presets = deckcraft_engine::cmd::recolor::presets(); if let Some(preset) = - style_grid(ui, TileGrid::new("Recolor").natural_height(true), &presets, None, ThumbAspect::new(40, 30), |cx, rect, id| { + style_grid(ui, TileGrid::new("Recolor").natural_height(true).card_columns(7), &presets, None, ThumbAspect::new(40, 30), |cx, rect, id| { paint_recolor(cx, rect, id, &sc) }) {