24 lines
602 B
Rust
24 lines
602 B
Rust
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;
|
||
|
|
|
||
|
|
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
|
||
|
|
{
|
||
|
|
color: Default::default(),
|
||
|
|
width: 0.0,
|
||
|
|
radius: Radius::new(BUTTON_RADIUS),
|
||
|
|
};
|
||
|
|
style
|
||
|
|
}
|