Selectively apply FOCUS_ACCESSIBILITY to the Labels instead of setting it by default.

This commit is contained in:
Pāvels Nadtočajevs 2025-04-22 11:57:16 +03:00
parent 1696ab0cb6
commit 5b49fd4207
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
84 changed files with 159 additions and 14 deletions

View file

@ -1139,6 +1139,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
set_up_ssh_passphrase_input->add_child(set_up_ssh_passphrase);
set_up_warning_text = memnew(Label);
set_up_warning_text->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
set_up_warning_text->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
set_up_warning_text->set_h_size_flags(Control::SIZE_EXPAND_FILL);
set_up_settings_vbc->add_child(set_up_warning_text);
@ -1503,6 +1504,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
version_control_dock->add_child(diff_heading);
diff_title = memnew(Label);
diff_title->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
diff_title->set_h_size_flags(Control::SIZE_EXPAND_FILL);
diff_heading->add_child(diff_title);