diff --git a/src/theme.rs b/src/theme.rs index 013a731..446a4dc 100644 --- a/src/theme.rs +++ b/src/theme.rs @@ -14,7 +14,7 @@ pub const SF_FONT: iced::Font = Font { pub fn get_default_theme() -> Theme { Theme::custom("Glossy".to_string(), Palette { - background: Color::from_rgb8(236, 236, 236), + background: Color::TRANSPARENT, // Color::from_rgb8(236, 236, 236) text: Color::from_rgb8(0, 0, 0), primary: Color::from_rgb8(0, 122, 255), success: Color::from_rgb8(52, 199, 89), diff --git a/src/widget.rs b/src/widget.rs index 6a47c2d..101379f 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -5,9 +5,9 @@ use crate::{theme, Message}; pub fn basic_btn(s: &str) -> button::Button { button(container(text(s).center().font(theme::SF_FONT).size(13.0).line_height(1.)).padding(Padding { - top: 6., - right: 8., - bottom: 6., - left: 8., + top: 1.5, + right: 2., + bottom: 1.5, + left: 2., })).style(theme::basic_button_theme) } \ No newline at end of file