浏览代码

Add tooltip for `StyleBoxPreview` grid button

arkology 6 月之前
父节点
当前提交
77df31bc12
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/plugins/style_box_editor_plugin.cpp

+ 1 - 0
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);