diff options
author | 2024-02-01 13:51:11 +0100 | |
---|---|---|
committer | 2024-02-01 13:51:11 +0100 | |
commit | 759f0e922598504705b543185bc7140a652b726a (patch) | |
tree | a7f2eb4ddee8127ace2e7002091c502d22bbb1c6 /style/src/checkbox.rs | |
parent | b95f3ab12f863f4de668e4e6f8a75b7d3acdf2b7 (diff) | |
parent | b0d40d70a041ffaa07d94bea8fba11589c239725 (diff) | |
download | iced-759f0e922598504705b543185bc7140a652b726a.tar.gz iced-759f0e922598504705b543185bc7140a652b726a.tar.bz2 iced-759f0e922598504705b543185bc7140a652b726a.zip |
Merge pull request #2109 from avsaase/feat/checkbox-disabled
Add option to disable checkbox
Diffstat (limited to 'style/src/checkbox.rs')
-rw-r--r-- | style/src/checkbox.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/style/src/checkbox.rs b/style/src/checkbox.rs index d96ea4ad..82c1766f 100644 --- a/style/src/checkbox.rs +++ b/style/src/checkbox.rs @@ -24,4 +24,7 @@ pub trait StyleSheet { /// Produces the hovered [`Appearance`] of a checkbox. fn hovered(&self, style: &Self::Style, is_checked: bool) -> Appearance; + + /// Produces the disabled [`Appearance`] of a checkbox. + fn disabled(&self, style: &Self::Style, is_checked: bool) -> Appearance; } |