mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Initial editor accessibility.
This commit is contained in:
parent
4310cb82b8
commit
302fa831cc
137 changed files with 1544 additions and 93 deletions
|
|
@ -113,6 +113,7 @@ StyleBoxPreview::StyleBoxPreview() {
|
|||
// This theme variation works better than the normal theme because there's no focus highlight.
|
||||
grid_preview->set_theme_type_variation("PreviewLightButton");
|
||||
grid_preview->set_tooltip_text(TTRC("Toggle margins preview grid."));
|
||||
grid_preview->set_accessibility_name(TTRC("Margins Preview Grid"));
|
||||
grid_preview->set_toggle_mode(true);
|
||||
grid_preview->connect(SceneStringName(toggled), callable_mp(this, &StyleBoxPreview::_grid_preview_toggled));
|
||||
grid_preview->set_pressed(grid_preview_enabled);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue