summaryrefslogtreecommitdiffstats
path: root/style/src/theme.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-02-07 20:38:47 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-07 20:38:47 +0100
commit80081f0f1c00d9dc94d3ed24dd37ab5285cff0db (patch)
treea650daae1dcf5e470e96bdae4a4e5ce6ae4ebdfd /style/src/theme.rs
parent80a29a277e2f15c0711efc37dc6c86c2ef98879e (diff)
parentcecfa1c467124f255fd86077bdb9e610690d4a32 (diff)
downloadiced-80081f0f1c00d9dc94d3ed24dd37ab5285cff0db.tar.gz
iced-80081f0f1c00d9dc94d3ed24dd37ab5285cff0db.tar.bz2
iced-80081f0f1c00d9dc94d3ed24dd37ab5285cff0db.zip
Merge pull request #2219 from GyulyVGC/toggler-border-width
Add border widths to `Toggler` `StyleSheet`
Diffstat (limited to 'style/src/theme.rs')
-rw-r--r--style/src/theme.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/style/src/theme.rs b/style/src/theme.rs
index 96f91260..e579a1c2 100644
--- a/style/src/theme.rs
+++ b/style/src/theme.rs
@@ -797,13 +797,15 @@ impl toggler::StyleSheet for Theme {
} else {
palette.background.strong.color
},
- background_border: None,
+ background_border_width: 0.0,
+ background_border_color: Color::TRANSPARENT,
foreground: if is_active {
palette.primary.strong.text
} else {
palette.background.base.color
},
- foreground_border: None,
+ foreground_border_width: 0.0,
+ foreground_border_color: Color::TRANSPARENT,
}
}
Toggler::Custom(custom) => custom.active(self, is_active),