modified: src/main.rs
modified: src/theme.rs modified: src/widget.rs
This commit is contained in:
parent
ffd5eebfd2
commit
d151a73b97
@ -81,7 +81,6 @@ fn main() -> iced::Result {
|
||||
}*/
|
||||
|
||||
iced::application("iLoader", App::update, App::view)
|
||||
.exit_on_close_request(true)
|
||||
.theme(App::theme)
|
||||
.window_size((980.0, 700.0))
|
||||
.run_with(App::new)
|
||||
|
@ -29,7 +29,7 @@ pub fn basic_button_theme(theme: &Theme, _status: Status) -> Style {
|
||||
border: Border {
|
||||
color: Color::TRANSPARENT,
|
||||
width: 0.0,
|
||||
radius: 10.0.into(),
|
||||
radius: 5.0.into(),
|
||||
},
|
||||
..Default::default()
|
||||
}
|
||||
|
@ -3,6 +3,6 @@ use iced::{widget::{button, container, text}, Length::Fill};
|
||||
use crate::{theme, Message};
|
||||
|
||||
|
||||
pub fn basic_btn(str: &str) -> button::Button<Message> { // .font(theme::SF_FONT)
|
||||
button(container(text(str).center().size(13).line_height(16.)).center_x(Fill)).width(109).height(22).style(theme::basic_button_theme)
|
||||
pub fn basic_btn(str: &str) -> button::Button<Message> {
|
||||
button(text(str).center().font(theme::SF_FONT).size(13.0).line_height(16.)).width(109).height(22).style(theme::basic_button_theme)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user