modified: src/main.rs

modified:   src/theme.rs
	modified:   src/widget.rs
This commit is contained in:
Michael Wain 2024-12-12 03:00:45 +03:00
parent ffd5eebfd2
commit d151a73b97
3 changed files with 3 additions and 4 deletions

View File

@ -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)

View File

@ -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()
}

View File

@ -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)
}