padding
This commit is contained in:
parent
e03da6380d
commit
9d75dc8830
2 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ edition = "2021"
|
|||
name = "cosmic"
|
||||
|
||||
[features]
|
||||
default = ["wayland", "applet"]
|
||||
default = ["wayland"]
|
||||
debug = ["iced/debug"]
|
||||
wayland = ["iced/wayland"]
|
||||
wgpu = ["iced/wgpu"]
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue