fix: button border radius and padding

This commit is contained in:
Ashley Wulber 2023-01-13 19:59:00 -05:00 committed by Ashley Wulber
parent ebe34377cb
commit dc1dc3e27b

View file

@ -1,4 +1,4 @@
use cosmic::applet::CosmicAppletHelper; use cosmic::applet::{CosmicAppletHelper, APPLET_BUTTON_THEME};
use cosmic::iced::wayland::{ use cosmic::iced::wayland::{
popup::{destroy_popup, get_popup}, popup::{destroy_popup, get_popup},
SurfaceIdWrapper, SurfaceIdWrapper,
@ -11,7 +11,7 @@ use cosmic::iced::{
use cosmic::iced_style::application::{self, Appearance}; use cosmic::iced_style::application::{self, Appearance};
use cosmic::iced_style::svg; use cosmic::iced_style::svg;
use cosmic::theme::{self, Svg}; use cosmic::theme::Svg;
use cosmic::widget::icon; use cosmic::widget::icon;
use cosmic::widget::toggler; use cosmic::widget::toggler;
use cosmic::Renderer; use cosmic::Renderer;
@ -174,12 +174,12 @@ fn row_button(
button( button(
Row::with_children(content) Row::with_children(content)
.spacing(5) .spacing(4)
.align_items(Alignment::Center), .align_items(Alignment::Center),
) )
.width(Length::Fill) .width(Length::Fill)
.height(Length::Units(35)) .height(Length::Units(36))
.style(theme::Button::Text) .style(APPLET_BUTTON_THEME)
} }
fn text_icon(name: &str, size: u16) -> cosmic::widget::Icon { fn text_icon(name: &str, size: u16) -> cosmic::widget::Icon {