mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Add focus font color to Button and derivatives
This commit is contained in:
parent
c1709e8177
commit
7fe0dab69b
14 changed files with 69 additions and 5 deletions
|
|
@ -70,7 +70,11 @@ void OptionButton::_notification(int p_what) {
|
|||
clr = get_color("font_color_disabled");
|
||||
break;
|
||||
default:
|
||||
clr = get_color("font_color");
|
||||
if (has_focus()) {
|
||||
clr = get_color("font_color_focus");
|
||||
} else {
|
||||
clr = get_color("font_color");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue