UI: new icon set by Andrzej Ambroz.
This is a monochrome icon set, with a more modern look and icons for various features that did not have a proper icon before.
This commit is contained in:
@@ -887,7 +887,7 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta):
|
||||
props.menu_idname = self.bl_idname
|
||||
|
||||
if add_operator:
|
||||
props = row.operator(add_operator, text="", icon='ZOOMOUT')
|
||||
props = row.operator(add_operator, text="", icon='REMOVE')
|
||||
props.name = name
|
||||
props.remove_name = True
|
||||
|
||||
@@ -901,7 +901,7 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta):
|
||||
sub.emboss = 'NORMAL'
|
||||
sub.prop(wm, "preset_name", text="")
|
||||
|
||||
props = row.operator(add_operator, text="", icon='ZOOMIN')
|
||||
props = row.operator(add_operator, text="", icon='ADD')
|
||||
props.name = wm.preset_name
|
||||
|
||||
def draw_preset(self, context):
|
||||
|
||||
@@ -105,7 +105,7 @@ def draw_km(display_keymaps, kc, km, children, layout, level):
|
||||
subcol = _indented_layout(col, kmi_level)
|
||||
subcol = subcol.split(factor=0.2).column()
|
||||
subcol.operator("wm.keyitem_add", text="Add New", text_ctxt=i18n_contexts.id_windowmanager,
|
||||
icon='ZOOMIN')
|
||||
icon='ADD')
|
||||
|
||||
col.separator()
|
||||
|
||||
@@ -350,7 +350,7 @@ def draw_filtered(display_keymaps, filter_type, filter_text, layout):
|
||||
# "Add New" at end of keymap item list
|
||||
col = _indented_layout(layout, 1)
|
||||
subcol = col.split(factor=0.2).column()
|
||||
subcol.operator("wm.keyitem_add", text="Add New", icon='ZOOMIN')
|
||||
subcol.operator("wm.keyitem_add", text="Add New", icon='ADD')
|
||||
return True
|
||||
|
||||
|
||||
@@ -380,8 +380,8 @@ def draw_keymaps(context, layout):
|
||||
if not text:
|
||||
text = "Blender (default)"
|
||||
row.menu("USERPREF_MT_keyconfigs", text=text)
|
||||
row.operator("wm.keyconfig_preset_add", text="", icon='ZOOMIN')
|
||||
row.operator("wm.keyconfig_preset_add", text="", icon='ZOOMOUT').remove_active = True
|
||||
row.operator("wm.keyconfig_preset_add", text="", icon='ADD')
|
||||
row.operator("wm.keyconfig_preset_add", text="", icon='REMOVE').remove_active = True
|
||||
|
||||
# layout.context_pointer_set("keyconfig", wm.keyconfigs.active)
|
||||
# row.operator("wm.keyconfig_remove", text="", icon='X')
|
||||
|
||||
@@ -188,7 +188,7 @@ def draw(layout, context, context_member, property_type, use_edit=True):
|
||||
if not is_rna:
|
||||
props = row.operator("wm.properties_edit", text="Edit")
|
||||
assign_props(props, val_draw, key)
|
||||
props = row.operator("wm.properties_remove", text="", icon='ZOOMOUT')
|
||||
props = row.operator("wm.properties_remove", text="", icon='REMOVE')
|
||||
assign_props(props, val_draw, key)
|
||||
else:
|
||||
row.label(text="API Defined")
|
||||
|
||||
Reference in New Issue
Block a user