From 753e9e0f2bbd5e130d05ec247f91ab2b9c4bce54 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 24 Oct 2023 16:28:53 +0200 Subject: [PATCH] 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 --- scripts/startup/bl_ui/space_node.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/scripts/startup/bl_ui/space_node.py b/scripts/startup/bl_ui/space_node.py index 5f0ab48c85f..3f5b1a2cb12 100644 --- a/scripts/startup/bl_ui/space_node.py +++ b/scripts/startup/bl_ui/space_node.py @@ -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):