git.lucas.co / cce-system-interface
system settings
git clone https://git.lucas.co/cce-system-interface.git

commit14b2344c58fe323893abecc0b3986d50831d6cc2
parent242eadcffa
authorLucas Galante <lsgalante12@gmail.com>
date2026-10-05 22:06
fix(browser,notifications): left-align toggle labels off the seam

A toggle's run is half its width, so the seam where run meets well sits
at the toggle's midpoint. These row-wide toggles centred their labels
on that same midpoint, and the seam was drawn through the text. They are
now left-aligned, as the designer's parameter pane sets its toggles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

 src/pages/browser.rs       | 10 +++++++---
 src/pages/notifications.rs |  3 +++
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/pages/browser.rs b/src/pages/browser.rs
index 2ed31bf..a5ddf66 100644
--- a/src/pages/browser.rs
+++ b/src/pages/browser.rs
@@ -109,9 +109,13 @@ impl Default for BrowserState {
             )
             .with_label("Page Color Scheme"),
             download_dir_box,
-            history_toggle: Toggle::new().with_label("Record History"),
-            raindrop_toggle: Toggle::new().with_label("Sync Bookmarks with Raindrop"),
-            vi_mode_toggle: Toggle::new().with_label("Vi Keys (qutebrowser-style)"),
+            // Left-aligned, as the designer's parameter pane sets its toggles:
+            // a toggle's run is half its width, so the seam where run meets
+            // well sits at the midpoint, and a centred label on a row-wide
+            // toggle had it drawn straight through the text.
+            history_toggle: Toggle::new().with_label("Record History").with_left_align(true),
+            raindrop_toggle: Toggle::new().with_label("Sync Bookmarks with Raindrop").with_left_align(true),
+            vi_mode_toggle: Toggle::new().with_label("Vi Keys (qutebrowser-style)").with_left_align(true),
         }
     }
 }
diff --git a/src/pages/notifications.rs b/src/pages/notifications.rs
index 7588595..1e1dfa0 100644
--- a/src/pages/notifications.rs
+++ b/src/pages/notifications.rs
@@ -30,8 +30,11 @@ impl Default for NotificationsState {
         Self {
             loaded: false,
             enable: true,
+            // Left-aligned: centred, the label straddled the seam at the
+            // toggle's midpoint (see the Browser page's toggles).
             enable_toggle: Toggle::new()
                 .with_label("Enable Notifications")
+                .with_left_align(true)
                 .with_config(&get_config_path(), "enable"),
             bell: "none".to_string(),
             bell_menu: Dropdown::new(