[Bf-extensions-cvs] [d7bfc48b] master: archipack 2.8 fix icon_only

Stephen Leger noreply at git.blender.org
Mon Jan 28 09:29:38 CET 2019


Commit: d7bfc48b3307b7bf53ff69abb0ccd8b605a65598
Author: Stephen Leger
Date:   Mon Jan 28 09:28:50 2019 +0100
Branches: master
https://developer.blender.org/rBAd7bfc48b3307b7bf53ff69abb0ccd8b605a65598

archipack 2.8 fix icon_only

===================================================================

M	archipack/archipack_cutter.py
M	archipack/archipack_fence.py
M	archipack/archipack_floor.py
M	archipack/archipack_roof.py
M	archipack/archipack_slab.py
M	archipack/archipack_stair.py
M	archipack/archipack_wall2.py
M	archipack/archipack_window.py

===================================================================

diff --git a/archipack/archipack_cutter.py b/archipack/archipack_cutter.py
index 3b9f424d..b75dc4cf 100644
--- a/archipack/archipack_cutter.py
+++ b/archipack/archipack_cutter.py
@@ -662,12 +662,12 @@ class ArchipackCutter():
         box = layout.box()
         row = box.row()
         if self.parts_expand:
-            row.prop(self, 'parts_expand', icon="TRIA_DOWN", icon_only=True, text="Parts", emboss=False)
+            row.prop(self, 'parts_expand', icon="TRIA_DOWN", text="Parts", emboss=False)
             box.prop(self, 'n_parts')
             for i, part in enumerate(self.parts):
                 part.draw(layout, context, i)
         else:
-            row.prop(self, 'parts_expand', icon="TRIA_RIGHT", icon_only=True, text="Parts", emboss=False)
+            row.prop(self, 'parts_expand', icon="TRIA_RIGHT", text="Parts", emboss=False)
 
     def update_parts(self):
         # print("update_parts")
diff --git a/archipack/archipack_fence.py b/archipack/archipack_fence.py
index 5f987779..7af93df3 100644
--- a/archipack/archipack_fence.py
+++ b/archipack/archipack_fence.py
@@ -1490,19 +1490,19 @@ class ARCHIPACK_PT_fence(Panel):
         box = layout.box()
         row = box.row()
         if prop.parts_expand:
-            row.prop(prop, 'parts_expand', icon="TRIA_DOWN", icon_only=True, text="Parts", emboss=False)
+            row.prop(prop, 'parts_expand', icon="TRIA_DOWN", text="Parts", emboss=False)
             box.prop(prop, 'n_parts')
             for i, part in enumerate(prop.parts):
                 part.draw(layout, context, i)
         else:
-            row.prop(prop, 'parts_expand', icon="TRIA_RIGHT", icon_only=True, text="Parts", emboss=False)
+            row.prop(prop, 'parts_expand', icon="TRIA_RIGHT", text="Parts", emboss=False)
 
         box = layout.box()
         row = box.row(align=True)
         if prop.handrail_expand:
-            row.prop(prop, 'handrail_expand', icon="TRIA_DOWN", icon_only=True, text="Handrail", emboss=False)
+            row.prop(prop, 'handrail_expand', icon="TRIA_DOWN", text="Handrail", emboss=False)
         else:
-            row.prop(prop, 'handrail_expand', icon="TRIA_RIGHT", icon_only=True, text="Handrail", emboss=False)
+            row.prop(prop, 'handrail_expand', icon="TRIA_RIGHT", text="Handrail", emboss=False)
 
         row.prop(prop, 'handrail')
 
@@ -1522,9 +1522,9 @@ class ARCHIPACK_PT_fence(Panel):
         box = layout.box()
         row = box.row(align=True)
         if prop.post_expand:
-            row.prop(prop, 'post_expand', icon="TRIA_DOWN", icon_only=True, text="Post", emboss=False)
+            row.prop(prop, 'post_expand', icon="TRIA_DOWN", text="Post", emboss=False)
         else:
-            row.prop(prop, 'post_expand', icon="TRIA_RIGHT", icon_only=True, text="Post", emboss=False)
+            row.prop(prop, 'post_expand', icon="TRIA_RIGHT", text="Post", emboss=False)
         row.prop(prop, 'post')
         if prop.post_expand:
             box.prop(prop, 'post_spacing')
@@ -1539,9 +1539,9 @@ class ARCHIPACK_PT_fence(Panel):
         box = layout.box()
         row = box.row(align=True)
         if prop.subs_expand:
-            row.prop(prop, 'subs_expand', icon="TRIA_DOWN", icon_only=True, text="Subs", emboss=False)
+            row.prop(prop, 'subs_expand', icon="TRIA_DOWN", text="Subs", emboss=False)
         else:
-            row.prop(prop, 'subs_expand', icon="TRIA_RIGHT", icon_only=True, text="Subs", emboss=False)
+            row.prop(prop, 'subs_expand', icon="TRIA_RIGHT", text="Subs", emboss=False)
 
         row.prop(prop, 'subs')
         if prop.subs_expand:
@@ -1558,9 +1558,9 @@ class ARCHIPACK_PT_fence(Panel):
         box = layout.box()
         row = box.row(align=True)
         if prop.panel_expand:
-            row.prop(prop, 'panel_expand', icon="TRIA_DOWN", icon_only=True, text="Panels", emboss=False)
+            row.prop(prop, 'panel_expand', icon="TRIA_DOWN", text="Panels", emboss=False)
         else:
-            row.prop(prop, 'panel_expand', icon="TRIA_RIGHT", icon_only=True, text="Panels", emboss=False)
+            row.prop(prop, 'panel_expand', icon="TRIA_RIGHT", text="Panels", emboss=False)
         row.prop(prop, 'panel')
         if prop.panel_expand:
             box.prop(prop, 'panel_dist')
@@ -1572,9 +1572,9 @@ class ARCHIPACK_PT_fence(Panel):
         box = layout.box()
         row = box.row(align=True)
         if prop.rail_expand:
-            row.prop(prop, 'rail_expand', icon="TRIA_DOWN", icon_only=True, text="Rails", emboss=False)
+            row.prop(prop, 'rail_expand', icon="TRIA_DOWN", text="Rails", emboss=False)
         else:
-            row.prop(prop, 'rail_expand', icon="TRIA_RIGHT", icon_only=True, text="Rails", emboss=False)
+            row.prop(prop, 'rail_expand', icon="TRIA_RIGHT", text="Rails", emboss=False)
         row.prop(prop, 'rail')
         if prop.rail_expand:
             box.prop(prop, 'rail_n')
@@ -1591,13 +1591,13 @@ class ARCHIPACK_PT_fence(Panel):
         row = box.row()
 
         if prop.idmats_expand:
-            row.prop(prop, 'idmats_expand', icon="TRIA_DOWN", icon_only=True, text="Materials", emboss=False)
+            row.prop(prop, 'idmats_expand', icon="TRIA_DOWN", text="Materials", emboss=False)
             box.prop(prop, 'idmat_handrail')
             box.prop(prop, 'idmat_panel')
             box.prop(prop, 'idmat_post')
             box.prop(prop, 'idmat_subs')
         else:
-            row.prop(prop, 'idmats_expand', icon="TRIA_RIGHT", icon_only=True, text="Materials", emboss=False)
+            row.prop(prop, 'idmats_expand', icon="TRIA_RIGHT", text="Materials", emboss=False)
 
 # ------------------------------------------------------------------
 # Define operator class to create object
diff --git a/archipack/archipack_floor.py b/archipack/archipack_floor.py
index 82c1f000..5a5bc66f 100644
--- a/archipack/archipack_floor.py
+++ b/archipack/archipack_floor.py
@@ -1670,13 +1670,13 @@ class ARCHIPACK_PT_floor(Panel):
         box = layout.box()
         row = box.row()
         if props.parts_expand:
-            row.prop(props, 'parts_expand', icon="TRIA_DOWN", icon_only=True, text="Parts", emboss=False)
+            row.prop(props, 'parts_expand', icon="TRIA_DOWN", text="Parts", emboss=False)
             box.prop(props, 'n_parts')
             # box.prop(prop, 'closed')
             for i, part in enumerate(props.parts):
                 part.draw(context, layout, i)
         else:
-            row.prop(props, 'parts_expand', icon="TRIA_RIGHT", icon_only=True, text="Parts", emboss=False)
+            row.prop(props, 'parts_expand', icon="TRIA_RIGHT", text="Parts", emboss=False)
         layout.separator()
         box = layout.box()
         box.prop(props, 'pattern', text="")
diff --git a/archipack/archipack_roof.py b/archipack/archipack_roof.py
index 02bb01e8..477a3ce6 100644
--- a/archipack/archipack_roof.py
+++ b/archipack/archipack_roof.py
@@ -3527,12 +3527,12 @@ class ArchipackLines():
         box = layout.box()
         row = box.row()
         if self.parts_expand:
-            row.prop(self, 'parts_expand', icon="TRIA_DOWN", icon_only=True, text="Parts", emboss=False)
+            row.prop(self, 'parts_expand', icon="TRIA_DOWN", text="Parts", emboss=False)
             box.prop(self, 'n_parts')
             for i, part in enumerate(self.parts):
                 part.draw(layout, context, i)
         else:
-            row.prop(self, 'parts_expand', icon="TRIA_RIGHT", icon_only=True, text="Parts", emboss=False)
+            row.prop(self, 'parts_expand', icon="TRIA_RIGHT", text="Parts", emboss=False)
 
     def update_parts(self):
         # print("update_parts")
@@ -4707,13 +4707,13 @@ class archipack_roof(ArchipackLines, ArchipackObject, Manipulable, PropertyGroup
         box = layout.box()
         row = box.row()
         if self.parts_expand:
-            row.prop(self, 'parts_expand', icon="TRIA_DOWN", icon_only=True, text="Parts", emboss=False)
+            row.prop(self, 'parts_expand', icon="TRIA_DOWN", text="Parts", emboss=False)
             box.prop(self, 'n_parts')
             # box.prop(self, 'closed')
             for i, part in enumerate(self.parts):
                 part.draw(layout, context, i)
         else:
-            row.prop(self, 'parts_expand', icon="TRIA_RIGHT", icon_only=True, text="Parts", emboss=False)
+            row.prop(self, 'parts_expand', icon="TRIA_RIGHT", text="Parts", emboss=False)
 
 
 def update_hole(self, context):
@@ -4876,9 +4876,9 @@ class ARCHIPACK_PT_roof(Panel):
         box = layout.box()
         row = box.row(align=True)
         if prop.tile_expand:
-            row.prop(prop, 'tile_expand', icon="TRIA_DOWN", text="Covering", icon_only=True, emboss=False)
+            row.prop(prop, 'tile_expand', icon="TRIA_DOWN", text="Covering", emboss=False)
         else:
-            row.prop(prop, 'tile_expand', icon="TRIA_RIGHT", text="Covering", icon_only=True, emboss=False)
+            row.prop(prop, 'tile_expand', icon="TRIA_RIGHT", text="Covering", emboss=False)
         row.prop(prop, 'tile_enable')
         if prop.tile_expand:
             box.prop(prop, 'tile_model', text="")
@@ -4919,9 +4919,9 @@ class ARCHIPACK_PT_roof(Panel):
         box = layout.box()
         row = box.row(align=True)
         if prop.hip_expand:
-            row.prop(prop, 'hip_expand', icon="TRIA_DOWN", text="Hip", icon_only=True, emboss=False)
+            row.prop(prop, 'hip_expand', icon="TRIA_DOWN", text="Hip", emboss=False)
         else:
-            row.prop(prop, 'hip_expand', icon="TRIA_RIGHT", text="Hip", icon_only=True, emboss=False)
+            row.prop(prop, 'hip_expand', icon="TRIA_RIGHT", text="Hip", emboss=False)
         row.prop(prop, 'hip_enable')
         if prop.hip_expand:
             box.prop(prop, 'hip_model', text="")
@@ -4938,9 +4938,9 @@ class ARCHIPACK_PT_roof(Panel):
         row = box.row(align=True)
 
         if prop.beam_expand:
-            row.prop(prop, 'beam_expand', icon="TRIA_DOWN", text="Beam", icon_only=True, emboss=False)
+            row.prop(prop, 'beam_expand', icon="TRIA_DOWN", text="Beam", emboss=False)
         else:
-            row.prop(prop, 'beam_expand', icon="TRIA_RIGHT", 

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list