mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +00:00
Fix #5691. UI tweak to show less colour, more text for usability.
This commit is contained in:
@@ -141,12 +141,12 @@ class BIM_PT_select_similar(Panel):
|
|||||||
|
|
||||||
class BIM_UL_colourscheme(bpy.types.UIList):
|
class BIM_UL_colourscheme(bpy.types.UIList):
|
||||||
def draw_item(self, context, layout, data, item, icon, active_data, active_propname):
|
def draw_item(self, context, layout, data, item, icon, active_data, active_propname):
|
||||||
props = context.scene.BIMWorkScheduleProperties
|
|
||||||
if not item:
|
if not item:
|
||||||
return
|
return
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.label(text=f"{item.name} ({item.total})")
|
split = row.split(factor=0.85)
|
||||||
row.prop(item, "colour", text="")
|
split.label(text=f"{item.name} ({item.total})")
|
||||||
|
split.prop(item, "colour", text="")
|
||||||
|
|
||||||
|
|
||||||
class BIM_UL_ifc_class_filter(bpy.types.UIList):
|
class BIM_UL_ifc_class_filter(bpy.types.UIList):
|
||||||
|
|||||||
Reference in New Issue
Block a user