Add a tool to take an inverted screenshot (#1849)

* Add invert tool to build commands

* Add icons for invert tool

* Integrate invert tool

* Add shortcut for invert tool

* Add invert tool

* Add translation for invert tool

* Run clang-format

* Update tool to invert a region instead of everything

* Update shortcut for invert tool

* Update button order of inverter and counter

* Update translations for invert tool

* Run clang-format

* Revert "Update translations for invert tool"

This reverts commit c1fd5a162be6c64b26790d53eab3749b3a124bcf.

* Revert "Add translation for invert tool"

This reverts commit b0c1da5f36e844fa8b5f1492f5f507d85bb7aa7b.

* Update drawSearchArea to match pixelate

* Update invert icon to one from Material Design

Co-authored-by: crackcat <>
This commit is contained in:
crackcat
2021-09-01 13:45:20 +02:00
committed by GitHub
parent 29c7a5f781
commit df20c7ec8f
12 changed files with 168 additions and 26 deletions

View File

@@ -8,6 +8,7 @@
#include "copy/copytool.h"
#include "exit/exittool.h"
#include "imgur/imguruploadertool.h"
#include "invert/inverttool.h"
#include "launcher/applaunchertool.h"
#include "line/linetool.h"
#include "marker/markertool.h"
@@ -68,6 +69,9 @@ CaptureTool* ToolFactory::CreateTool(CaptureToolButton::ButtonType t,
case CaptureToolButton::TYPE_SAVE:
tool = new SaveTool(parent);
break;
case CaptureToolButton::TYPE_INVERT:
tool = new InvertTool(parent);
break;
case CaptureToolButton::TYPE_SELECTION:
tool = new SelectionTool(parent);
break;