mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 10:18:12 +08:00
Consolidate MenuListButton into TextButton (#1470)
This commit is contained in:
@@ -198,7 +198,7 @@ impl LayoutHolder for BrushTool {
|
||||
group
|
||||
.iter()
|
||||
.map(|blend_mode| {
|
||||
DropdownEntryData::new(format!("{blend_mode}"))
|
||||
MenuListEntry::new(format!("{blend_mode}"))
|
||||
.value(format!("{blend_mode:?}"))
|
||||
.on_update(|_| BrushToolMessage::UpdateOptions(BrushToolMessageOptionsUpdate::BlendMode(*blend_mode)).into())
|
||||
})
|
||||
|
||||
@@ -103,7 +103,7 @@ impl SelectTool {
|
||||
// let layer_selection_behavior_entries = [NestedSelectionBehavior::Deepest, NestedSelectionBehavior::Shallowest]
|
||||
// .iter()
|
||||
// .map(|mode| {
|
||||
// DropdownEntryData::new(mode.to_string())
|
||||
// MenuListEntry::new(mode.to_string())
|
||||
// .value(mode.to_string())
|
||||
// .on_update(move |_| SelectToolMessage::SelectOptions(SelectOptionsUpdate::NestedSelectionBehavior(*mode)).into())
|
||||
// })
|
||||
|
||||
Reference in New Issue
Block a user