diff --git a/crates/rnote-ui/data/ui/penssidebar/shaperpage.ui b/crates/rnote-ui/data/ui/penssidebar/shaperpage.ui index 3604af205e..c8b79ad3e6 100644 --- a/crates/rnote-ui/data/ui/penssidebar/shaperpage.ui +++ b/crates/rnote-ui/data/ui/penssidebar/shaperpage.ui @@ -36,6 +36,17 @@ + + + misc-menu-symbolic + left + Shaper Extra + shaperextra_popover + + + @@ -126,35 +137,6 @@ - - - - Highlighting - - - Highlight-Mode - Fade active color - - - - - Highlight-Opacity - Modify the highlight opacity (%) - - - 0 - 100 - 50 - 1 - - - true - 0 - - - - - @@ -234,41 +216,98 @@ + + + + + + + + + vertical + 6 + 6 + 6 + 6 + 12 + 300 + + + + + Shaper Extra + true + center + + + + + + window-close-symbolic + + + + + + + + + + Highlighting + + + Highlight-Mode + Fade active color + + + + + Highlight-Opacity + Modify the highlight opacity (%) + + + 0 + 100 + 50 + 1 + + + true + 0 + + + + Constraints - - 300 - none - - - - Enabled - Hold Ctrl to temporarily enable/disable + + Enabled + Hold Ctrl to temporarily enable/disable constraints when this switch is off/on - - - - - 1:1 - - - - - 3:2 - - - - - Golden Ratio (1:1.618) - - + + + + + 1:1 + + + + + 3:2 + + + + + Golden Ratio (1:1.618) @@ -319,4 +358,4 @@ constraints when this switch is off/on - \ 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