summaryrefslogtreecommitdiffstats
path: root/style/src/theme.rs
diff options
context:
space:
mode:
authorLibravatar Casper Storm <casper.storm@lich.io>2023-02-16 14:13:04 +0100
committerLibravatar Casper Storm <casper.storm@lich.io>2023-02-16 14:13:04 +0100
commit4fb0be179359097db4aaf6d88dff1367201727dd (patch)
tree00cd3cf510973b22137ca34ff237c307460503c7 /style/src/theme.rs
parent0cb72f69716adc82ad85a0ee7120edb6e653b0c0 (diff)
downloadiced-4fb0be179359097db4aaf6d88dff1367201727dd.tar.gz
iced-4fb0be179359097db4aaf6d88dff1367201727dd.tar.bz2
iced-4fb0be179359097db4aaf6d88dff1367201727dd.zip
Added the ability to change checkbox icon
Diffstat (limited to '')
-rw-r--r--style/src/theme.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/style/src/theme.rs b/style/src/theme.rs
index 55bfa4ca..4ba4facf 100644
--- a/style/src/theme.rs
+++ b/style/src/theme.rs
@@ -320,7 +320,7 @@ impl checkbox::StyleSheet for Theme {
}
fn checkbox_appearance(
- checkmark_color: Color,
+ icon_color: Color,
base: palette::Pair,
accent: palette::Pair,
is_checked: bool,
@@ -331,7 +331,7 @@ fn checkbox_appearance(
} else {
base.color
}),
- checkmark_color,
+ icon_color,
border_radius: 2.0,
border_width: 1.0,
border_color: accent.color,