-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a focus border on ScrollContainer
#97521
Add a focus border on ScrollContainer
#97521
Conversation
@ator-dev, here is the re-implementation of your PR on |
4fc8127
to
3fd9448
Compare
I like it, but it may be more useful if we can scroll the view with |
Should I add this in this PR or in another? |
It's ok, I think i can do it later since we can't rely on |
Great to see this discussion and thanks for the reimplementation PR!
I'm sorry, although I mean to, I'm really busy at the moment. What's most important is that the result is accessible and doesn't affect anything weirdly. |
No problem! |
Note: The focus Edit: I see you're not using the default focus style for the |
Could you please elaborate this? I'm still too new to Godot GUI.
When you say that I should add/update documentation, Are you talking about this file, right? I'm wondering where I could document the use |
One more change is to check |
3fd9448
to
10a88ae
Compare
Done |
@AThousandShips sorry if I tag you wrongly, but this CI job is being running for more than 5 hours. I know I can "stop" it submitting a new commit into the PR, and I'll do it soon, but I would like to let you know because you could set a configuration on GitHub or something to kill stuck CI actions. ![]() |
10a88ae
to
6a2c7e1
Compare
2a95377
to
3235814
Compare
293ff8c
to
d03d8b1
Compare
Tested and it seems to work correctly. |
@KoBeWi sorry but I'm not getting this:
|
d52846a
to
7f03663
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good.
7f03663
to
1bf1ab9
Compare
Also added new unit tests for `Control`. Co-authored-by: ator-dev <dominic.codedeveloper@gmail.com>
1bf1ab9
to
86ea012
Compare
Thanks! |
@@ -3281,6 +3281,8 @@ void EditorPropertyResource::update_property() { | |||
sub_inspector->set_read_only(is_read_only()); | |||
sub_inspector->set_use_folding(is_using_folding()); | |||
|
|||
sub_inspector->set_draw_focus_border(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sub_inspector
needs to grab focus, but not show the style? It seems that sub_inspector
does not need to grab focus.
Also added
child_has_focus
function toControl
. This is used byScrollContainer
to detect if one of its childs has focus and should draw the focus border.Also added
focus
SceneStringName
.Also added new unit tests for
Control
.Supersedes #59362