mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Hide Control focus when given via mouse input
This commit is contained in:
parent
2753d333f6
commit
aeb3a45c97
53 changed files with 229 additions and 105 deletions
|
|
@ -191,7 +191,7 @@ void LinkButton::_notification(int p_what) {
|
|||
|
||||
switch (get_draw_mode()) {
|
||||
case DRAW_NORMAL: {
|
||||
if (has_focus()) {
|
||||
if (has_focus(true)) {
|
||||
color = theme_cache.font_focus_color;
|
||||
} else {
|
||||
color = theme_cache.font_color;
|
||||
|
|
@ -222,7 +222,7 @@ void LinkButton::_notification(int p_what) {
|
|||
} break;
|
||||
}
|
||||
|
||||
if (has_focus()) {
|
||||
if (has_focus(true)) {
|
||||
Ref<StyleBox> style = theme_cache.focus;
|
||||
style->draw(ci, Rect2(Point2(), size));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue