diff options
author | Tobias Christiansen <tobi@tobyase.de> | 2021-08-05 15:00:49 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-08-07 02:52:47 +0430 |
commit | 193f1e01cf718be38ce3c764613db668781b12a5 (patch) | |
tree | 0e3cdfe06b402101c373c6f3f0aee9b58c93e6c9 | |
parent | 7923929a4d65c43b145150c54132076492fbe8f0 (diff) | |
download | serenity-193f1e01cf718be38ce3c764613db668781b12a5.zip |
PixelPaint: Add the GuideTool to the Toolbox
This also adds a custom icon for the GuideTool.
-rw-r--r-- | Base/res/icons/pixelpaint/guides.png | bin | 0 -> 682 bytes | |||
-rw-r--r-- | Userland/Applications/PixelPaint/ToolboxWidget.cpp | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Base/res/icons/pixelpaint/guides.png b/Base/res/icons/pixelpaint/guides.png Binary files differnew file mode 100644 index 0000000000..9e62d16e90 --- /dev/null +++ b/Base/res/icons/pixelpaint/guides.png diff --git a/Userland/Applications/PixelPaint/ToolboxWidget.cpp b/Userland/Applications/PixelPaint/ToolboxWidget.cpp index 17eabaa19c..55481348a2 100644 --- a/Userland/Applications/PixelPaint/ToolboxWidget.cpp +++ b/Userland/Applications/PixelPaint/ToolboxWidget.cpp @@ -9,6 +9,7 @@ #include "BucketTool.h" #include "EllipseTool.h" #include "EraseTool.h" +#include "GuideTool.h" #include "LineTool.h" #include "MoveTool.h" #include "PenTool.h" @@ -79,6 +80,7 @@ void ToolboxWidget::setup_tools() add_tool("Ellipse", "circle", { Mod_Ctrl | Mod_Shift, Key_E }, make<EllipseTool>()); add_tool("Zoom", "zoom", { 0, Key_Z }, make<ZoomTool>()); add_tool("Rectangle Select", "rectangle-select", { 0, Key_R }, make<RectangleSelectTool>()); + add_tool("Guides", "guides", { 0, Key_G }, make<GuideTool>()); } } |