Redesign the ColorButton widget style

This commit is contained in:
Keavon Chambers
2023-11-27 04:48:16 -08:00
parent b2ca643e6e
commit 32fb142b62
4 changed files with 91 additions and 66 deletions

View File

@@ -125,10 +125,13 @@ pub struct ColorButton {
#[widget_builder(constructor)]
pub value: Option<Color>,
pub disabled: bool,
// TODO: Implement
// #[serde(rename = "allowTransparency")]
// #[derivative(Default(value = "false"))]
// pub allow_transparency: bool,
//
#[serde(rename = "allowNone")]
#[derivative(Default(value = "true"))]
pub allow_none: bool,