summaryrefslogtreecommitdiffstats
path: root/style/src/theme.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-02-17 12:58:27 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-17 12:58:27 +0100
commit32745f472fe00af492551ef5878fc5f570ae24ab (patch)
tree4e43b48864814a19b1906a11ab50dc5674260283 /style/src/theme.rs
parente3fbaed12fcb7b2aaa33c42e60cf675d707bc197 (diff)
parent4fb0be179359097db4aaf6d88dff1367201727dd (diff)
downloadiced-32745f472fe00af492551ef5878fc5f570ae24ab.tar.gz
iced-32745f472fe00af492551ef5878fc5f570ae24ab.tar.bz2
iced-32745f472fe00af492551ef5878fc5f570ae24ab.zip
Merge pull request #1707 from casperstorm/feat/checkbox-icon
Added the ability to change `Checkbox` icon
Diffstat (limited to 'style/src/theme.rs')
-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,