Add suffix widget non-rounding; add disabled state to many widgets

This commit is contained in:
Keavon Chambers
2022-11-04 15:03:22 -07:00
parent ff75e0eae9
commit a1e061fa14
28 changed files with 218 additions and 63 deletions
@@ -129,6 +129,7 @@ impl PropertyHolder for GradientTool {
..RadioEntryData::default()
},
],
..Default::default()
}))],
}]))
}
@@ -259,6 +259,7 @@ impl PropertyHolder for SelectTool {
WidgetHolder::new(Widget::PivotAssist(PivotAssist {
position: self.tool_data.pivot.to_pivot_position(),
on_update: WidgetCallback::new(|pivot_assist: &PivotAssist| SelectToolMessage::SetPivot { position: pivot_assist.position }.into()),
..Default::default()
})),
],
}]))
+2 -1
View File
@@ -183,9 +183,10 @@ impl PropertyHolder for ToolData {
WidgetHolder::new(Widget::IconButton(IconButton {
icon: icon_name,
size: 32,
disabled: false,
active: self.active_tool_type == tool_type,
tooltip: tooltip.clone(),
tooltip_shortcut,
active: self.active_tool_type == tool_type,
on_update: WidgetCallback::new(move |_| {
if !tooltip.contains("Coming Soon") {
ToolMessage::ActivateTool { tool_type }.into()