UI: show add/subtract as icons

Saves space in the topbar
This commit is contained in:
Campbell Barton 2018-04-29 17:38:17 +02:00
parent 5cdeae2105
commit b5985831e2
2 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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}
};