From a60c7bb059f8ec2f84a43ec5501754a89980c604 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Tue, 3 Feb 2026 23:59:14 +0100 Subject: refactor: increase border radius of rounded widgets just in case --- src/button.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/button.rs') diff --git a/src/button.rs b/src/button.rs index c4009c5..5fec1a8 100644 --- a/src/button.rs +++ b/src/button.rs @@ -31,7 +31,7 @@ pub fn styled( let active = Style { background: Some(Background::Color(background)), text_color: foreground, - border: border::rounded(400), + border: border::rounded(9999), shadow: shadow_from_elevation(elevation(elevation_level), shadow_color), snap: CRISP, }; @@ -61,7 +61,7 @@ pub fn styled( Status::Disabled => Style { background: Some(Background::Color(disabled_container(disabled))), text_color: disabled_text(disabled), - border: border::rounded(400), + border: border::rounded(9999), ..Default::default() }, } @@ -113,12 +113,12 @@ pub fn outlined(theme: &Theme, status: Status) -> Style { Status::Active | Status::Pressed | Status::Hovered => Border { color: outline, width: 1.0, - radius: 400.into(), + radius: 9999.into(), }, Status::Disabled => Border { color: disabled_container(disabled), width: 1.0, - radius: 400.into(), + radius: 9999.into(), }, }; -- cgit v1.2.3