* Add ColorGrabWidget
The new widget aims to decouple color grabbing from the SidePanelWidget.
* Refactor SidePanelWidget to use ColorGrabWidget
- All color grabbing functionality is now moved to ColorGrabWidget
- SidePanelWidget now uses a more organized sigslot approach
- Removed QColorPickingEventFilter
* Fix bug and complete implementation
Timer not yet implemented.
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Add 0.5s timer
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fix failing builds
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Add hex color editor
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Add right mouse button instant preview
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Make zoom widget toggle-able
* Implement OverlayMessage class
* Make Right click do the same as Space
* Unzoom widget when mouse leaves it
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fix some small issues
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Toggle panel when grabbing color
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Show with timer even if magnifier active
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Reduce timer delay
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fix OverlayMessage bug
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Implement changing tool size by keyboard
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fix very poor performance when changing thickness
* Make thickness get saved to config
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* 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 <>
* Fall back to default keyboard shortcuts
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Add missing shortcuts and clean up
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Remove obsolete method ConfigHandler::shortcuts
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Don't show buttons if selection is inactive
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Move tool creates new selection if not visible
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Make thickness adjustment methods uniform
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Hide cursor while changing thickness
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Make --path work correctly with relative paths
Relative paths are taken relative to the working directory of the calling
command, not relative to the daemon's working directory.
* Allow file paths in --path and refactor
* Remove some redundancy
These actions are already performed in the respective functions in
FlameshotDBusAdapter.
* Tweak --path error checker a bit more
* Rework FileNameHandler and update references
The class now has a much simpler interface.
- Screenshot paths are now universally determined by the function
properScreenshotPath
- Some unreferenced methods have been removed
- The documentation of properScreenshotPath documents the changes well.
* Add crude tests for --path
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fix failing build on Windows
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Add a test for invalid path
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Make tests clearer
Thanks to @mmahmoudian for his review and contribution.
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fix bug in properScreenshotPath
Auto-numeration did not work when the screenshot was automatically
saved when copied to clipboard.
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Fall back to default pictures location
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Revert "Remove some redundancy"
This was not redundancy. I had actually introduced a bug with this.
This reverts commit 011ef737564892e494518443e6b80ccf3d286ae1.
* Change default path only on interactive save
Previously, the default save path was changed every time a screenshot
was saved. Now, that only happens when it gets saved from the GUI.
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Change --path help text
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
* Allow other image formats
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>