From 77df31bc12ff709e1109a9ab297c6ba739dd2304 Mon Sep 17 00:00:00 2001 From: arkology <43543909+arkology@users.noreply.github.com> Date: Mon, 17 Feb 2025 16:08:19 +0300 Subject: [PATCH] Add tooltip for `StyleBoxPreview` grid button --- editor/plugins/style_box_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/style_box_editor_plugin.cpp b/editor/plugins/style_box_editor_plugin.cpp index 2d71c617de6..8098b9be70b 100644 --- a/editor/plugins/style_box_editor_plugin.cpp +++ b/editor/plugins/style_box_editor_plugin.cpp @@ -112,6 +112,7 @@ StyleBoxPreview::StyleBoxPreview() { grid_preview = memnew(Button); // 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_toggle_mode(true); grid_preview->connect(SceneStringName(toggled), callable_mp(this, &StyleBoxPreview::_grid_preview_toggled)); grid_preview->set_pressed(grid_preview_enabled);