From d14d3cd836f2d7cd9e1aec08162bbb921efcd922 Mon Sep 17 00:00:00 2001 From: LennartAppAkademie Date: Sat, 4 Apr 2026 13:55:14 +0200 Subject: [PATCH 1/2] Add tooltip descriptions for shape tools in ShapeType enum --- .../common_functionality/shapes/shape_utility.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/editor/src/messages/tool/common_functionality/shapes/shape_utility.rs b/editor/src/messages/tool/common_functionality/shapes/shape_utility.rs index 96dbdd5165..8debd48196 100644 --- a/editor/src/messages/tool/common_functionality/shapes/shape_utility.rs +++ b/editor/src/messages/tool/common_functionality/shapes/shape_utility.rs @@ -69,8 +69,16 @@ impl ShapeType { pub fn tooltip_description(&self) -> String { (match self { - // TODO: Add descriptions to all the shape tools - _ => "", + Self::Polygon => "Draw a regular polygon.", + Self::Star => "Draw a star-shaped polygon.", + Self::Circle => "Draw a circle.", + Self::Arc => "Draw an arc or curved segment.", + Self::Spiral => "Draw a spiral shape.", + Self::Grid => "Draw a grid of equally sized rectangles.", + Self::Arrow => "Draw an arrow pointing in a specified direction.", + Self::Line => "Draw a straight line.", + Self::Rectangle => "Draw a rectangle or square.", + Self::Ellipse => "Draw an ellipse or circle.", }) .into() } From e1783775a8d39b34ccd2d87b1b42b89c19e4929e Mon Sep 17 00:00:00 2001 From: Lennart Kosova <156789920+LennartKDeveloper@users.noreply.github.com> Date: Sat, 4 Apr 2026 14:07:35 +0200 Subject: [PATCH 2/2] Update editor/src/messages/tool/common_functionality/shapes/shape_utility.rs Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- .../messages/tool/common_functionality/shapes/shape_utility.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/messages/tool/common_functionality/shapes/shape_utility.rs b/editor/src/messages/tool/common_functionality/shapes/shape_utility.rs index 8debd48196..6b67058d8d 100644 --- a/editor/src/messages/tool/common_functionality/shapes/shape_utility.rs +++ b/editor/src/messages/tool/common_functionality/shapes/shape_utility.rs @@ -74,7 +74,7 @@ impl ShapeType { Self::Circle => "Draw a circle.", Self::Arc => "Draw an arc or curved segment.", Self::Spiral => "Draw a spiral shape.", - Self::Grid => "Draw a grid of equally sized rectangles.", + Self::Grid => "Draw a grid of equally sized cells.", Self::Arrow => "Draw an arrow pointing in a specified direction.", Self::Line => "Draw a straight line.", Self::Rectangle => "Draw a rectangle or square.",