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
|
|
@ -71,7 +71,11 @@ void OptionButton::_notification(int p_what) {
|
|||
clr = get_theme_color(SNAME("font_disabled_color"));
|
||||
break;
|
||||
default:
|
||||
clr = get_theme_color(SNAME("font_color"));
|
||||
if (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