From 4c8df6fb70ed901ba57bb727e164b229bf03ff0b Mon Sep 17 00:00:00 2001 From: anesthetice <118751106+anesthetice@users.noreply.github.com> Date: Sat, 13 Sep 2025 00:54:30 +0200 Subject: [PATCH 1/3] moved highlighting and constraints to their own 'Shaper Extra' popover --- .../data/ui/penssidebar/shaperpage.ui | 168 ++++++++++++------ crates/rnote-ui/src/appwindow/imp.rs | 5 + crates/rnote-ui/src/penssidebar/shaperpage.rs | 143 ++++++++------- 3 files changed, 198 insertions(+), 118 deletions(-) diff --git a/crates/rnote-ui/data/ui/penssidebar/shaperpage.ui b/crates/rnote-ui/data/ui/penssidebar/shaperpage.ui index 3604af205e..02a9f558eb 100644 --- a/crates/rnote-ui/data/ui/penssidebar/shaperpage.ui +++ b/crates/rnote-ui/data/ui/penssidebar/shaperpage.ui @@ -1,4 +1,4 @@ - + - \ No newline at end of file + diff --git a/crates/rnote-ui/src/appwindow/imp.rs b/crates/rnote-ui/src/appwindow/imp.rs index c2da89c122..85305984cc 100644 --- a/crates/rnote-ui/src/appwindow/imp.rs +++ b/crates/rnote-ui/src/appwindow/imp.rs @@ -708,6 +708,11 @@ impl RnAppWindow { .shaper_page() .shapeconfig_menubutton() .set_direction(ArrowType::Right); + obj.overlays() + .penssidebar() + .shaper_page() + .shaperextra_menubutton() + .set_direction(ArrowType::Right); obj.overlays() .penssidebar() .shaper_page() diff --git a/crates/rnote-ui/src/penssidebar/shaperpage.rs b/crates/rnote-ui/src/penssidebar/shaperpage.rs index 669c6fc34d..c6a8f8bc64 100644 --- a/crates/rnote-ui/src/penssidebar/shaperpage.rs +++ b/crates/rnote-ui/src/penssidebar/shaperpage.rs @@ -44,10 +44,6 @@ mod imp { #[template_child] pub(crate) shaperstyle_rough_row: TemplateChild, #[template_child] - pub(crate) highlight_mode_row: TemplateChild, - #[template_child] - pub(crate) highlight_opacity_row: TemplateChild, - #[template_child] pub(crate) smoothstyle_group: TemplateChild, #[template_child] pub(crate) smoothstyle_line_cap_row: TemplateChild, @@ -59,6 +55,17 @@ mod imp { pub(crate) roughstyle_fillstyle_row: TemplateChild, #[template_child] pub(crate) roughstyle_hachure_angle_row: TemplateChild, + + #[template_child] + pub(crate) shaperextra_menubutton: TemplateChild, + #[template_child] + pub(crate) shaperextra_popover: TemplateChild, + #[template_child] + pub(crate) shaperextra_popover_close_button: TemplateChild