From b5f1ca169567f47b3976de5b4c5a2b1ce37656d5 Mon Sep 17 00:00:00 2001 From: Alexander van Saase Date: Mon, 2 Oct 2023 20:18:15 +0200 Subject: Introduce support for disabling a `checkbox` --- style/src/checkbox.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'style/src/checkbox.rs') 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; } -- cgit