wip: add plus icon to empty color picker button

This commit is contained in:
Ashley Wulber 2023-10-12 12:45:57 -04:00
parent 931f0011b4
commit 0c02266aa7
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 124 additions and 97 deletions

View file

@ -160,12 +160,7 @@ impl Default for State {
"card 4".to_string(),
],
timeline: Rc::new(RefCell::new(Default::default())),
color_picker_model: ColorPickerModel::new(
"Hex",
"RGB",
Some(Color::new(0.8, 0.3, 0.8, 1.0)),
None,
),
color_picker_model: ColorPickerModel::new("Hex", "RGB", None, None),
}
}
}
@ -525,6 +520,8 @@ impl State {
.into(),
self.color_picker_model
.picker_button(Message::ColorPickerUpdate)
.width(Length::Fixed(128.0))
.height(Length::Fixed(128.0))
.into(),
if self.color_picker_model.get_is_active() {
self.color_picker_model