From 1d004a4c8b88ad0730f8578f8d254f5f2e873e5c Mon Sep 17 00:00:00 2001 From: Chris Renfrow Date: Fri, 23 May 2025 16:15:54 -0700 Subject: [PATCH] Begin converting invert bg from one-time action to general mode setting --- crates/rnote-ui/data/ui/settingspanel.ui | 27 ++++++------ crates/rnote-ui/src/settingspanel/mod.rs | 53 ++++++++---------------- 2 files changed, 32 insertions(+), 48 deletions(-) diff --git a/crates/rnote-ui/data/ui/settingspanel.ui b/crates/rnote-ui/data/ui/settingspanel.ui index 957792fc86..a92e05986e 100644 --- a/crates/rnote-ui/data/ui/settingspanel.ui +++ b/crates/rnote-ui/data/ui/settingspanel.ui @@ -127,6 +127,21 @@ gets disabled. + + + Invert Background Brightness + Invert the brightness of the background and pattern colors + + + + Disabled + Enabled + Follow system + + + + + @@ -440,18 +455,6 @@ gets disabled. Set whether the document origin indicator is shown - - - Invert Color Brightness - Invert the brightness of the background and pattern colors - - - center - Invert - - - - diff --git a/crates/rnote-ui/src/settingspanel/mod.rs b/crates/rnote-ui/src/settingspanel/mod.rs index 71e54e78ac..37692c93da 100644 --- a/crates/rnote-ui/src/settingspanel/mod.rs +++ b/crates/rnote-ui/src/settingspanel/mod.rs @@ -57,6 +57,8 @@ mod imp { #[template_child] pub(crate) general_drawing_cursor_picker_menubutton: TemplateChild, #[template_child] + pub(crate) general_background_invert_mode_row: TemplateChild, + #[template_child] pub(crate) format_predefined_formats_row: TemplateChild, #[template_child] pub(crate) format_save_preset_button: TemplateChild