git.lucas.co / cce-notifier
notification daemon
git clone https://git.lucas.co/cce-notifier.git

commit3558674ef615d2d31257bd9fa94f512179d38c30
parent6c0f1380df
authorLucas Galante <[email protected]>
date2026-09-06 12:50
Drop the green left accent strip from notification cards

The 6px TOGGLE_ON quad was unconditional decoration: urgency hints are not
read, so it never signalled anything. The backplate, border and radius
from the shared plate style already frame the card.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

 src/main.rs | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 4270767..83ccb6e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -292,12 +292,6 @@ fn draw_card(
             pc.rounded_rect(surface, radius, (on, on, on, on), fill);
         }
     }
-    pc.clip_rounded(surface, radius, |pc| {
-        pc.quad(
-            Rect { x: 0.0, y: top, width: 6.0, height: card_h },
-            cce_ui::colors::TOGGLE_ON,
-        );
-    });
     // Preview thumbnail (screenshots etc.) centered in its box left of
     // the text, which shifts right to make room.
     let text_x = text_origin(notification.image.is_some());
@@ -344,7 +338,7 @@ fn draw_card(
 
 // ── Application ───────────────────────────────────────────────────────────
 //
-// Phase 6 shape: the whole frame — accent quad and text — is one display list
+// Phase 6 shape: the whole frame — backplate and text — is one display list
 // (`display_list` + `display_list_text`); the engine shapes the text through the shared
 // buffer cache. No app-side FontSystem, TextItem cache, or rebuild bookkeeping.
 
@@ -484,7 +478,7 @@ impl Application for NotifierApp {
         }
     }
 
-    /// The whole frame as one display list (Phase 6): the green accent border plus the three
+    /// The whole frame as one display list (Phase 6): the backplate plus the three
     /// text lines. Coordinates are logical px; the engine applies HiDPI scale and shapes the
     /// text through its shared buffer cache.
     fn display_list(&mut self, _size: cce_ui::engine::LogicalSize, _scale: f64) -> Option<cce_ui::scene::paint::DisplayList> {