mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 19:08:05 +08:00
Minor UI design style revamp
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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()
|
||||
})),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user