Skip to content

Commit

Permalink
Improve shape and bezier tool cursors
Browse files Browse the repository at this point in the history
They were hard to see and their icons were miles away from the cursor.
Now they're similar to the select rectangle in having a little cross
where the hot point is and putting the icon closer to it.
  • Loading branch information
askmeaboutlo0m committed Jul 30, 2023
1 parent cabdcd2 commit 60ae1de
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
Binary file modified src/desktop/cursors/curve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/desktop/cursors/ellipse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/desktop/cursors/line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/desktop/cursors/rectangle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/libclient/tools/beziertool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ using canvas::Point;
static constexpr long long DELTA_MSEC = 10;

BezierTool::BezierTool(ToolController &owner)
: Tool(owner, BEZIER, QCursor(QPixmap(":cursors/curve.png"), 1, 1), true, true, false)
: Tool(owner, BEZIER, QCursor(QPixmap(":cursors/curve.png"), 2, 2), true, true, false)
, m_brushEngine{}
{
}
Expand Down
6 changes: 3 additions & 3 deletions src/libclient/tools/shapetools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void ShapeTool::updatePreview()
}

Line::Line(ToolController &owner)
: ShapeTool(owner, LINE, QCursor(QPixmap(":cursors/line.png"), 1, 1))
: ShapeTool(owner, LINE, QCursor(QPixmap(":cursors/line.png"), 2, 2))
{
}

Expand Down Expand Up @@ -172,7 +172,7 @@ canvas::PointVector Line::pointVector() const
}

Rectangle::Rectangle(ToolController &owner)
: ShapeTool(owner, RECTANGLE, QCursor(QPixmap(":cursors/rectangle.png"), 1, 1))
: ShapeTool(owner, RECTANGLE, QCursor(QPixmap(":cursors/rectangle.png"), 2, 2))
{
}

Expand All @@ -188,7 +188,7 @@ canvas::PointVector Rectangle::pointVector() const
}

Ellipse::Ellipse(ToolController &owner)
: ShapeTool(owner, ELLIPSE, QCursor(QPixmap(":cursors/ellipse.png"), 1, 1))
: ShapeTool(owner, ELLIPSE, QCursor(QPixmap(":cursors/ellipse.png"), 2, 2))
{
}

Expand Down

0 comments on commit 60ae1de

Please sign in to comment.