diff --git a/crates/ui-egui/src/dialogs/blend_options.rs b/crates/ui-egui/src/dialogs/blend_options.rs index 8a714d54577..23314de5d0e 100644 --- a/crates/ui-egui/src/dialogs/blend_options.rs +++ b/crates/ui-egui/src/dialogs/blend_options.rs @@ -2,13 +2,16 @@ //! Layers panel's, so a mode has one key and one shortcut everywhere. Fill, Stroke and Fade grey the modes the active //! document's colour mode and depth can't use (#13806, #14647). -use craft::ui::patterns::form_dialogs::{DialogFields, Param, ParamKind}; +use craft::ui::patterns::form_dialogs::{DialogFields, FieldValue, Param, ParamKind, ParamResult}; use craft::ui::runtime::env::Label; +use craft::ui::runtime::memory::{SaveKey, saved_value, set_saved_value}; use photocraft_color::BlendMode; use serde_json::{Map, Value, json}; use crate::PhotocraftApp; +const PRESERVE: &str = "preserveTransparency"; + /// A blend-mode row `key` over the Layers panel's mode list (`group` adds Pass Through), opening on `current`. pub(crate) fn blend_param(key: &str, label: impl Into