Button restyle

This commit is contained in:
2026-08-01 17:16:58 +03:00
parent d9bd1b1b86
commit 4d6de8a02c
12 changed files with 82 additions and 63 deletions
+3 -6
View File
@@ -1,17 +1,13 @@
use iced::border::Radius;
use iced::widget::button::{primary, Status};
use iced::widget::button::danger;
use iced::widget::{button, Button};
use iced::Element;
use iced_core::{Background, Border, Theme};
use crate::repetitions::Style;
use iced_core::{Border, Theme};
pub const DEFAULT_SPACING: f32 = 16.0;
pub const ACCENT_FONT_SIZE: f32 = 22.0;
const BUTTON_RADIUS: f32 = 8.0;
pub fn jl_button(theme: &Theme, status: Status) -> Style {
let mut style = primary(theme, status);
style.border = Border
@@ -21,4 +17,5 @@ pub fn jl_button(theme: &Theme, status: Status) -> Style {
radius: Radius::new(BUTTON_RADIUS),
};
style
}
}