From 8020ed7c7fea0f9275bd7c4dcbdf42e1cd4e16c1 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Tue, 1 Dec 2026 02:08:18 -0800 Subject: [PATCH] Repaint the Classic preview after an opacity edit --- crates/ui-egui/src/tools/gradient_ui/bar.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ui-egui/src/tools/gradient_ui/bar.rs b/crates/ui-egui/src/tools/gradient_ui/bar.rs index 09da57fe9c..7102722973 100644 --- a/crates/ui-egui/src/tools/gradient_ui/bar.rs +++ b/crates/ui-egui/src/tools/gradient_ui/bar.rs @@ -123,6 +123,10 @@ pub(crate) fn bar(app: &mut PhotocraftApp, ui: &mut egui::Ui) { if let Some(at) = presets { preset_picker(app, ui, at); } + if before.fill_opacity != app.ui.tool_options.fill_opacity { + // The swatch painted before the Opacity field accepted the edit. + craft::ui::runtime::frame::request_repaint(ui.ctx()); + } options_changed(app, &before); }