From 9d75dc8830f7ed8a21af790e2b11c93b90629b1f Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Wed, 7 Dec 2022 11:48:55 -0500 Subject: [PATCH] padding --- Cargo.toml | 2 +- src/applet/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cbc327df..ce06f64b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" name = "cosmic" [features] -default = ["wayland", "applet"] +default = ["wayland"] debug = ["iced/debug"] wayland = ["iced/wayland"] wgpu = ["iced/wgpu"] diff --git a/src/applet/mod.rs b/src/applet/mod.rs index 522dc8e2..9cad8786 100644 --- a/src/applet/mod.rs +++ b/src/applet/mod.rs @@ -44,7 +44,7 @@ impl CosmicAppletHelper { pub fn icon_button<'a, Message: 'static>(&self, icon_name: &'a str) -> widget::Button<'a, Message, Renderer> { - crate::widget::button(crate::theme::Button::Text).icon(crate::theme::Svg::Symbolic, icon_name, self.suggested_icon_size()) + crate::widget::button(crate::theme::Button::Text).icon(crate::theme::Svg::Symbolic, icon_name, self.suggested_icon_size()).padding(8) } // TODO popup container which tracks the size of itself and requests the popup to resize to match @@ -101,7 +101,7 @@ impl CosmicAppletHelper { anchor_rect: Rectangle { x: 0, y: 0, - width: width_padding.unwrap_or(16) * 2 + pixels as i32, + width: width_padding.unwrap_or(8) * 2 + pixels as i32, height: height_padding.unwrap_or(8) * 2 + pixels as i32, }, reactive: true,