modified: src/theme.rs
modified: src/widget.rs
This commit is contained in:
parent
1598329342
commit
66722e8313
@ -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),
|
||||
|
@ -5,9 +5,9 @@ use crate::{theme, Message};
|
||||
|
||||
pub fn basic_btn(s: &str) -> button::Button<Message> {
|
||||
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)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user