Minor UI design style revamp

This commit is contained in:
Keavon Chambers
2023-04-27 02:05:45 -07:00
parent a4793fb284
commit 1f5bfdc2e5
43 changed files with 164 additions and 199 deletions

View File

@@ -49,13 +49,17 @@ pub struct ColorInput {
#[widget_builder(constructor)]
pub value: Option<Color>,
// TODO: Add allow_none
#[serde(rename = "noTransparency")]
#[derivative(Default(value = "true"))]
pub no_transparency: bool, // TODO: Rename allow_transparency (and invert usages)
// TODO: Implement
// #[serde(rename = "allowTransparency")]
// #[derivative(Default(value = "false"))]
// pub allow_transparency: bool,
pub disabled: bool,
// TODO: Implement
// #[serde(rename = "allowNone")]
// #[derivative(Default(value = "false"))]
// pub allow_none: bool,
// pub disabled: bool,
pub tooltip: String,
#[serde(skip)]

View File

@@ -217,7 +217,6 @@ pub fn register_artboard_layer_properties(layer: &Layer, responses: &mut VecDequ
let fill = if let Some(value) = text_input.value { value } else { Color::TRANSPARENT };
PropertiesPanelMessage::ModifyFill { fill: Fill::Solid(fill) }.into()
}),
no_transparency: true,
..Default::default()
})),
],