mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 06:18:11 +08:00
Add suffix widget non-rounding; add disabled state to many widgets
This commit is contained in:
@@ -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()
|
||||
})),
|
||||
],
|
||||
}]))
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user