UI: Use selected text theme of list item for tree view
If view items button is active, call `ui_layout_list_set_labels_active` to set the `SELECT` flag on label button. Due to this flag being set, text_sel theme color is copied to `wcol.text` (see `UI_SELECT` condition in `widget_state()`). This `wcol.text` is later used inside `widget_draw_text()` for text color. Pull Request: https://projects.blender.org/blender/blender/pulls/140330
This commit is contained in:
committed by
Pratik Borhade
parent
bd3a66a416
commit
f9e7769f7f
@@ -932,6 +932,9 @@ void TreeViewLayoutBuilder::build_row(AbstractTreeViewItem &item) const
|
||||
}
|
||||
else {
|
||||
item.build_row(*row);
|
||||
if (item.is_active_) {
|
||||
ui_layout_list_set_labels_active(row);
|
||||
}
|
||||
}
|
||||
|
||||
uiLayoutListItemAddPadding(row);
|
||||
|
||||
Reference in New Issue
Block a user