You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Initial editor accessibility.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user