From d151a73b97b0b574ce1072724766f5fb06064965 Mon Sep 17 00:00:00 2001 From: alterdekim Date: Thu, 12 Dec 2024 03:00:45 +0300 Subject: [PATCH] modified: src/main.rs modified: src/theme.rs modified: src/widget.rs --- src/main.rs | 1 - src/theme.rs | 2 +- src/widget.rs | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1376f2e..ce11e23 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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) diff --git a/src/theme.rs b/src/theme.rs index 9929a5e..8fda4b3 100644 --- a/src/theme.rs +++ b/src/theme.rs @@ -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() } diff --git a/src/widget.rs b/src/widget.rs index 48cc60b..1d20119 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -3,6 +3,6 @@ use iced::{widget::{button, container, text}, Length::Fill}; use crate::{theme, Message}; -pub fn basic_btn(str: &str) -> button::Button { // .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 { + button(text(str).center().font(theme::SF_FONT).size(13.0).line_height(16.)).width(109).height(22).style(theme::basic_button_theme) } \ No newline at end of file