Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Merge Layers Panel part 1 (main 8d840eab) into codex/fill-mask-preview-20261012

abc2cb4499458d32dd
diff --cc crates/ui-egui/src/layers_panel_ui.rs
index 181f60adf,ef6bbccf7..8d29c0de5
--- a/crates/ui-egui/src/layers_panel_ui.rs
+++ b/crates/ui-egui/src/layers_panel_ui.rs
@@@ -410,9 -386,8 +408,9 @@@ mod tests
let mut app = PhotocraftApp::new(session, crate::Services::default());
let saved = LayersPanelOptions {
thumbnail_size: LayerThumbnailSize::Large,
- thumbnail_contents: LayerThumbnailContents::LayerBounds,
+ thumbnail_contents: LayerThumbnailContents::EntireDocument,
show_filters: false,
+ use_default_masks_on_fill_layers: false,
expand_new_effects: false,
add_copy_to_copied_layers_and_groups: false,
preview_on_canvas_when_reordering_layers: false,
diff --cc crates/ui-egui/src/state.rs
index 5bba8a6c3,5fff56214..011018a06
--- a/crates/ui-egui/src/state.rs
+++ b/crates/ui-egui/src/state.rs
@@@ -26,9 -26,12 +26,13 @@@ pub enum LayerThumbnailContents
#[serde(default, rename_all = "camelCase")]
pub struct LayersPanelOptions {
pub thumbnail_size: LayerThumbnailSize,
+ /// Thumbnail Contents in the Panel Options dialog. Not saved with these options: the dialog
+ /// shows and sets `interface.clipThumbnailsToLayerBounds` (Layer Bounds = clipped, #4281),
+ /// which the panel menu's Clip Thumbnails to Layer Bounds toggles too.
+ #[serde(skip)]
pub thumbnail_contents: LayerThumbnailContents,
pub show_filters: bool,
+ pub use_default_masks_on_fill_layers: bool,
pub expand_new_effects: bool,
pub add_copy_to_copied_layers_and_groups: bool,
pub preview_on_canvas_when_reordering_layers: bool,