From fd6076ae3e2d016ec679a33bc2aef20334a258c7 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Sun, 17 Sep 2023 00:30:42 +0200 Subject: [PATCH] UI: Add icons to Color Ramp context menu items * Add icon to "Reset Color Ramp" (same used by Reset to Default Value) * Add icon to "Flip Color Ramp" (sideways arrows, similar to invert vertex groups). * Add separators after stops distribution operators, and before reset since they have pretty different purposes. --- source/blender/editors/interface/interface_templates.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/interface/interface_templates.cc b/source/blender/editors/interface/interface_templates.cc index 3c19b005aed..4fd1e434afa 100644 --- a/source/blender/editors/interface/interface_templates.cc +++ b/source/blender/editors/interface/interface_templates.cc @@ -3479,7 +3479,7 @@ static uiBlock *colorband_tools_func(bContext *C, ARegion *region, void *coba_v) uiDefIconTextBut(block, UI_BTYPE_BUT_MENU, 1, - ICON_BLANK1, + ICON_ARROW_LEFTRIGHT, IFACE_("Flip Color Ramp"), 0, yco -= UI_UNIT_Y, @@ -3522,12 +3522,16 @@ static uiBlock *colorband_tools_func(bContext *C, ARegion *region, void *coba_v) CB_FUNC_DISTRIBUTE_EVENLY, ""); + uiItemS(layout); + uiItemO(layout, IFACE_("Eyedropper"), ICON_EYEDROPPER, "UI_OT_eyedropper_colorramp"); + uiItemS(layout); + uiDefIconTextBut(block, UI_BTYPE_BUT_MENU, 1, - ICON_BLANK1, + ICON_LOOP_BACK, IFACE_("Reset Color Ramp"), 0, yco -= UI_UNIT_Y,