fix: window control button padding
Makes the internal padding of window control buttons fixed (can still perfectly fit inside the Compact header bar), since they otherwise become too small when Compact.
This commit is contained in:
parent
282700b987
commit
a415eb60bb
1 changed files with 6 additions and 1 deletions
|
|
@ -362,7 +362,11 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
|
|||
macro_rules! icon {
|
||||
($name:expr, $size:expr, $on_press:expr) => {{
|
||||
#[cfg(target_os = "linux")]
|
||||
let icon = { widget::icon::from_name($name).apply(widget::button::icon) };
|
||||
let icon = {
|
||||
widget::icon::from_name($name)
|
||||
.apply(widget::button::icon)
|
||||
.padding(8)
|
||||
};
|
||||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
let icon = {
|
||||
|
|
@ -373,6 +377,7 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
|
|||
)))
|
||||
.symbolic(true)
|
||||
.apply(widget::button::icon)
|
||||
.padding(8)
|
||||
};
|
||||
|
||||
icon.style(crate::theme::Button::HeaderBar)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue