mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 11:44:21 +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
|
|
@ -75,7 +75,11 @@ void LinkButton::_notification(int p_what) {
|
|||
|
||||
switch (get_draw_mode()) {
|
||||
case DRAW_NORMAL: {
|
||||
color = get_color("font_color");
|
||||
if (has_focus()) {
|
||||
color = get_color("font_color_focus");
|
||||
} else {
|
||||
color = get_color("font_color");
|
||||
}
|
||||
do_underline = underline_mode == UNDERLINE_MODE_ALWAYS;
|
||||
} break;
|
||||
case DRAW_HOVER_PRESSED:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue