Add focus font color to Button and derivatives
This commit is contained in:
parent
d020c6851a
commit
12838bd99d
15 changed files with 86 additions and 7 deletions
|
|
@ -2894,7 +2894,11 @@ void TileMapEditor::_layers_selection_button_draw() {
|
|||
clr = get_theme_color(SNAME("font_disabled_color"));
|
||||
break;
|
||||
default:
|
||||
clr = get_theme_color(SNAME("font_color"));
|
||||
if (layers_selection_button->has_focus()) {
|
||||
clr = get_theme_color(SNAME("font_focus_color"));
|
||||
} else {
|
||||
clr = get_theme_color(SNAME("font_color"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -841,7 +841,11 @@ void TileSetAtlasSourceEditor::_tile_data_editor_dropdown_button_draw() {
|
|||
clr = get_theme_color(SNAME("font_disabled_color"));
|
||||
break;
|
||||
default:
|
||||
clr = get_theme_color(SNAME("font_color"));
|
||||
if (tile_data_editor_dropdown_button->has_focus()) {
|
||||
clr = get_theme_color(SNAME("font_focus_color"));
|
||||
} else {
|
||||
clr = get_theme_color(SNAME("font_color"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue