Fix Node Tools popovers dark text
Labels in popover menus are always darker. That made the popovers for Type and Modes to have a way too dark color. Specially when the values were off. This commit mimics what we do in the viewport Selectability & Visibility menu. Basically we don't gray out the labels even if the values are off. Co-authored by: Hans Goudey <hans@blender.org>
This commit is contained in:
@@ -454,12 +454,9 @@ class NODE_PT_geometry_node_tool_object_types(Panel):
|
||||
col = layout.column()
|
||||
col.active = group.is_tool
|
||||
for prop, name, icon in types:
|
||||
row = col.row()
|
||||
row_checkbox = row.row()
|
||||
row_checkbox.prop(group, prop, text="")
|
||||
row_label = row.row()
|
||||
row_label.label(text=name, icon=icon)
|
||||
row_label.active = getattr(group, prop)
|
||||
row = col.row(align=True)
|
||||
row.label(text=name, icon=icon)
|
||||
row.prop(group, prop, text="")
|
||||
|
||||
|
||||
class NODE_PT_geometry_node_tool_mode(Panel):
|
||||
@@ -482,12 +479,9 @@ class NODE_PT_geometry_node_tool_mode(Panel):
|
||||
col = layout.column()
|
||||
col.active = group.is_tool
|
||||
for prop, name, icon in modes:
|
||||
row = col.row()
|
||||
row_checkbox = row.row()
|
||||
row_checkbox.prop(group, prop, text="")
|
||||
row_label = row.row()
|
||||
row_label.label(text=name, icon=icon)
|
||||
row_label.active = getattr(group, prop)
|
||||
row = col.row(align=True)
|
||||
row.label(text=name, icon=icon)
|
||||
row.prop(group, prop, text="")
|
||||
|
||||
|
||||
class NODE_PT_node_color_presets(PresetPanel, Panel):
|
||||
|
||||
Reference in New Issue
Block a user