Skip to content

Commit

Permalink
Grease Pencil - Iconize Edit Strokes panel - added icons for select m…
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerBforartists committed Mar 30, 2017
1 parent 082ab60 commit 3b43d2c
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 22 deletions.
52 changes: 50 additions & 2 deletions release/datafiles/blender_icons.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified release/datafiles/blender_icons16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file modified release/datafiles/blender_icons32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
36 changes: 18 additions & 18 deletions release/scripts/startup/bl_ui/space_view3d.py
Expand Up @@ -662,8 +662,8 @@ def draw(self, context):

layout.separator()

layout.operator("object.select_more", text="More")
layout.operator("object.select_less", text="Less")
layout.operator("object.select_more", text="More", icon = "SELECTMORE")
layout.operator("object.select_less", text="Less", icon = "SELECTLESS")

# Workaround to separate the tooltips
class VIEW3D_MT_select_pose_inverse(bpy.types.Operator):
Expand Down Expand Up @@ -763,8 +763,8 @@ def draw(self, context):
layout.operator("particle.select_linked", text="Deselect Linked").deselect = True
layout.separator()

layout.operator("particle.select_more", text="More")
layout.operator("particle.select_less", text="Less")
layout.operator("particle.select_more", text="More", icon = "SELECTMORE")
layout.operator("particle.select_less", text="Less", icon = "SELECTLESS")


class VIEW3D_MT_edit_mesh_select_similar(Menu):
Expand Down Expand Up @@ -802,8 +802,8 @@ class VIEW3D_MT_edit_mesh_select_more_less(Menu):
def draw(self, context):
layout = self.layout

layout.operator("mesh.select_more", text="More")
layout.operator("mesh.select_less", text="Less")
layout.operator("mesh.select_more", text="More", icon = "SELECTMORE")
layout.operator("mesh.select_less", text="Less", icon = "SELECTLESS")

layout.separator()

Expand Down Expand Up @@ -935,8 +935,8 @@ def draw(self, context):

layout.separator()

layout.operator("curve.select_more", text = "More")
layout.operator("curve.select_less", text = "Less")
layout.operator("curve.select_more", text = "More", icon = "SELECTMORE")
layout.operator("curve.select_less", text = "Less", icon = "SELECTLESS")

layout.separator()

Expand Down Expand Up @@ -975,8 +975,8 @@ def draw(self, context):

layout.separator()

layout.operator("curve.select_more", text = "More")
layout.operator("curve.select_less", text = "Less")
layout.operator("curve.select_more", text = "More", icon = "SELECTMORE")
layout.operator("curve.select_less", text = "Less", icon = "SELECTLESS")

layout.separator()

Expand Down Expand Up @@ -1076,8 +1076,8 @@ def draw(self, context):

layout.separator()

layout.operator("lattice.select_more", text ="More")
layout.operator("lattice.select_less", text ="Less")
layout.operator("lattice.select_more", text ="More", icon = "SELECTMORE")
layout.operator("lattice.select_less", text ="Less", icon = "SELECTLESS")

layout.separator()

Expand Down Expand Up @@ -1141,8 +1141,8 @@ def draw(self, context):

layout.separator()

layout.operator("armature.select_more", text="More")
layout.operator("armature.select_less", text="Less")
layout.operator("armature.select_more", text="More", icon = "SELECTMORE")
layout.operator("armature.select_less", text="Less", icon = "SELECTLESS")

layout.separator()

Expand Down Expand Up @@ -1172,8 +1172,8 @@ def draw(self, context):

layout.separator()

layout.operator("gpencil.select_more")
layout.operator("gpencil.select_less")
layout.operator("gpencil.select_more", icon = "SELECTMORE")
layout.operator("gpencil.select_less", icon = "SELECTLESS")


# Workaround to separate the tooltips
Expand Down Expand Up @@ -2189,8 +2189,8 @@ def draw(self, context):

layout.separator()

layout.operator("particle.select_more")
layout.operator("particle.select_less")
layout.operator("particle.select_more", icon = "SELECTMORE")
layout.operator("particle.select_less", icon = "SELECTLESS")

layout.separator()

Expand Down
7 changes: 5 additions & 2 deletions source/blender/editors/include/UI_icons.h
Expand Up @@ -191,9 +191,12 @@ DEF_ICON(POSE_HLT)
DEF_ICON(PARTICLEMODE)
DEF_ICON(LIGHTPAINT) // deprecated

/*bfa - select more less icons*/
DEF_ICON(SELECTLESS)
DEF_ICON(SELECTMORE)

#ifndef DEF_ICON_BLANK_SKIP
DEF_ICON(BLANK063)
DEF_ICON(BLANK064)

DEF_ICON(BLANK065)
DEF_ICON(BLANK066)
DEF_ICON(BLANK067)
Expand Down

0 comments on commit 3b43d2c

Please sign in to comment.