forked from bartvdbraak/blender
UI: show add/subtract as icons
Saves space in the topbar
This commit is contained in:
parent
5cdeae2105
commit
b5985831e2
@ -187,9 +187,9 @@ class _draw_left_context_mode:
|
||||
|
||||
from .properties_paint_common import UnifiedPaintPanel
|
||||
|
||||
UnifiedPaintPanel.prop_unified_size(layout, context, brush, "size", icon='LOCKED', slider=True, text="Radius")
|
||||
UnifiedPaintPanel.prop_unified_strength(layout, context, brush, "strength", icon='LOCKED', slider=True, text="Strength")
|
||||
layout.prop(brush, "direction", expand=True)
|
||||
UnifiedPaintPanel.prop_unified_size(layout, context, brush, "size", slider=True, text="Radius")
|
||||
UnifiedPaintPanel.prop_unified_strength(layout, context, brush, "strength", slider=True, text="Strength")
|
||||
layout.prop(brush, "direction", text="", expand=True)
|
||||
|
||||
class TOPBAR_PT_redo(Panel):
|
||||
bl_label = "Redo"
|
||||
|
@ -44,8 +44,8 @@
|
||||
#include "WM_types.h"
|
||||
|
||||
static const EnumPropertyItem prop_direction_items[] = {
|
||||
{0, "ADD", 0, "Add", "Add effect of brush"},
|
||||
{BRUSH_DIR_IN, "SUBTRACT", 0, "Subtract", "Subtract effect of brush"},
|
||||
{0, "ADD", ICON_ZOOMIN, "Add", "Add effect of brush"},
|
||||
{BRUSH_DIR_IN, "SUBTRACT", ICON_ZOOMOUT, "Subtract", "Subtract effect of brush"},
|
||||
{0, NULL, 0, NULL, NULL}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user