From 66722e8313f04bfe1c548ac6a5749db1f20d4839 Mon Sep 17 00:00:00 2001 From: "alterwain@protonmail.com" Date: Sat, 14 Dec 2024 04:10:20 +0300 Subject: [PATCH] modified: src/theme.rs modified: src/widget.rs --- src/theme.rs | 2 +- src/widget.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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