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