From 5b77a6d8f19500eee21a497ce84db538ded05c00 Mon Sep 17 00:00:00 2001 From: cashmere Date: Wed, 29 Jul 2026 09:10:42 +0200 Subject: add collapsible SNI system tray, rename project to i3bar-mango Tray: the bar acts as org.kde.StatusNotifierWatcher plus host (zbus), rendering items on the right edge with icon/name; [tray] config toggles expanded, show_icon, show_name, show_description. Clicks map to Activate/SecondaryActivate/ContextMenu. Rename: package, binary, config dir, layer-shell namespace and DBus names are now i3bar-mango; mango is the default feature and the first WM provider tried. --- src/button_manager.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/button_manager.rs') diff --git a/src/button_manager.rs b/src/button_manager.rs index 13f9124..9915460 100644 --- a/src/button_manager.rs +++ b/src/button_manager.rs @@ -1,6 +1,12 @@ -#[derive(Debug, Default)] +#[derive(Debug)] pub struct ButtonManager(Vec<(f64, f64, T)>); +impl Default for ButtonManager { + fn default() -> Self { + Self(Vec::new()) + } +} + impl ButtonManager { pub fn push(&mut self, x_offset: f64, width: f64, elem: T) { self.0.push((x_offset, width, elem)); -- cgit v1.3.1