Commit Graph

30 Commits

Author SHA1 Message Date
artptr c2d60c2046 Add masked icon for macOS with dynamic wallpapers (#4257) 2025-09-26 16:50:14 -05:00
Mehrad Mahmoudian 5f167831f2 Fix Flathub "App Listing Quality" issues (#4018)
* flatpak xml - move releases to the bottom

* flatpak xml - add branding tag

* flatpak xml - add supports tag

* flatpak xml - move translate tag for better organization

* flatpak xml - better organizing the sections

* flatpak xml - add categories tag and additional url tags

* flatpak cml - fix the summary

* flatpak xml - update screenshots

* flatpak xml - add recommends tag

* flatpak xml - add more text to the description

* add padding to the Flatpak app icons

* Fix closing tags

---------

Co-authored-by: Jeremy Borgman <borgman.jeremy@pm.me>
2025-07-01 20:11:47 -05:00
El Thoro 2eef14a14d Fix OpenWith on Windows (#1309) (#2801)
* Fix OpenWith on Windows (#1309)

* Clang-format and function name fix

* Clang-format
2022-10-02 08:11:08 -05:00
Riedler dcb1291a5c fixed missing workaround for arc flag parsing bug (#2693) 2022-06-21 12:28:23 -05:00
borgmanJeremy 10e8326e67 reverting marker svg (#2668) 2022-06-15 08:42:45 -05:00
borgmanJeremy 3297f738d7 fix warning related to fonts on macos (#2578) 2022-05-03 08:10:00 -05:00
Riedler f7bb400b0b optimized some arrow paths (#2523) 2022-04-04 08:16:27 -05:00
Affir Vega 1cc5a26292 Created basic layer movement functionality (up, down) (#2108)
* Created basic layer movement functionality (up, down)

* Replaced `and` and `or` with `&&` and `||`, added constructor initialization

* Added move icons. Added that moving layers pushes state to undo stack.

* Cleaned svgs.

* Circle counter doesn't change nubmer when reordered anymore

* Changed move arrow SVGs

* Make down arrow in size with up arrow, fix white colors from #feffff to #fff

* SVGs in unitilypanel for buttons now choose color depending on color theme

* Refactor tool removing code, removed fixme, fixed bug with minimal circleCount

* Set minimal width for buttons

Co-authored-by: Feskow Vega <affirvega@krutt.org>
2022-01-29 15:32:09 -06:00
Riedler 5ab76e233b Optimize various SVGs (second try) (#2318)
* Optimized various SVGs

decreased file size, complexity, fixed spec compliancy and fixed one case where the text rendered weirdly sometimes

* fixed a single space too little 🤦
2022-01-25 13:36:10 -06:00
borgmanJeremy 9752b975c1 Revert "Optimize various SVGs (#2130)" (#2179)
This reverts commit a00df9ca59.
2021-12-22 09:31:31 -06:00
Riedler a00df9ca59 Optimize various SVGs (#2130)
* first 3 optimizations

* minified 5 more SVGs

* minimized the delete icon even more

* minified white variants of previously minified SVGs

* removed unneccessary xml header from circlecount-outline SVG

* optimized invert icons

* optimized open_with SVG

* optimized the alignment SVGs

* optimized pin SVGs

* optimized mouse-off SVGs

* optimized flameshot icon SVG

* optimized more instances of the flameshot icon SVG

* optimized SVG 'marker'

* fixed problems with weird default fonts messing with the circlecount-outline SVG image

* whoops forgot to recolor a white icon

* different approach to 3f73efa62b
qt5 didn't like the transform attribute I added previously, but this should work as well - just not as reliably.
Better than before both commits in any case though

* somewhat decreased size & complexity of the keyboard SVG

* optimized monochrome flameshot icon

* optimized format-text SVG

* optimized SVG icon 'graphics'

* optimized SVG icon 'format_bold'

* optimized SVG icon 'colorize'

* optimized SVG icon 'config'

* optimized icon 'redo-variant'

* optimized SVG icon 'cloud-upload'

* optimized SVG icon 'arrow-bottom-left'

* optimized SVG icon 'circle-outline'

* optimized SVG icon 'content-copy'

* optimized SVG icon 'content-save'

* optimized SVG icon 'cursor-move'

* optimized SVG icon 'exit-to-app'

* optimized SVG icon 'format_italic'

* optimized SVG icon 'format_strikethrough'

* optimized SVG icon 'format_underlined'
2021-12-20 13:31:41 -06:00
borgmanJeremy f675123e0a working on monochrome icon (#2071)
* working on monochrome icon

* Update pipeline

* adjusted icns to be monochrome

* Added 1045 monochrome
2021-11-17 14:28:16 -06:00
Haris Gušić c59cd049b7 Add icon for accept tool
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2021-10-08 19:11:23 +02:00
borgmanJeremy 0b777c4558 Added text alignment (#1892) 2021-10-06 13:23:54 -05:00
crackcat df20c7ec8f 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 c1fd5a162b.

* Revert "Add translation for invert tool"

This reverts commit b0c1da5f36.

* Update drawSearchArea to match pixelate

* Update invert icon to one from Material Design

Co-authored-by: crackcat <>
2021-09-01 06:45:20 -05:00
Yurii Puchkov 55e61b8743 Namecheap - Basic objects editing (move, remove, change color, change thickness) (#1539)
* Code refactoring - rename deleteToolwidgetOrClose to deleteToolWidgetOrClose

(cherry picked from commit cc9d71c660)

* Code refactoring - move part of code from CaptureWidget::paintEvent function into showInitialMessage

(cherry picked from commit 377b716dc4)

* Code refactoring - move part of code from CaptureWidget::paintEvent function into showInitialMessage

(cherry picked from commit 377b716dc4)

* Code refactoring - move part of code from CaptureWidget::paintEvent function into drawInactiveRegion, rename showInitialMessage -> drawInitialMessage

(cherry picked from commit 39bf83588d)

* Re-implement undo/redo feature with a future ability to work with it as with history with access by index (remove/edit not just for a last item)

(cherry picked from commit d6c6cf51c3)

* fix - No bubble border for CircleCountTool

(cherry picked from commit 6ef81efd91)

* fix - Restore Pen and Brush after the rectangle tool (effects Circle tool without it)

(cherry picked from commit 5239925fa5)

* Tool objects history (undo) list on Utility Panel - added icon to the items

(cherry picked from commit 4181990f26)

* Update Ukrainian and Russian translations

(cherry picked from commit eae2fe0f58)

* Feature - remove any created object on CaptureWidget

(cherry picked from commit ed2073fa7c)

* Search tool object on CaptureWidget on mouse click and select it in UtilityPanel

(cherry picked from commit 5a997dd560)

* Optimize tool object search on CaptureWidget

(cherry picked from commit 7cd4872cb4)

* Move selection with Ctrl modificator key only, set correct mouse cursor for dragging and selecting tool objects

(cherry picked from commit bf8e47ccbe)

* Move tool objects based on AbstractTwoPointTool class

(cherry picked from commit 3f041b76d2)

* Move Text tool objects on CaptureWidget

(cherry picked from commit b71b6db9e1)

* Move Pencil tool objects on CaptureWidget

(cherry picked from commit 3a269a57bb)

* Code refactoring - clean up unused and some refactoring

(cherry picked from commit af667f1e25)

* Remove - duplicate 'at' class member with int and uint types

(cherry picked from commit 4b5b2f7a75)

* Search for an active object BLUR/PIXELATE and activate it on mouse click

(cherry picked from commit 04cbbdd352)

* Increase search radius for text objects

(cherry picked from commit 4f189bc40b)

* Code refactoring - remove old unused undo/redo backupPixmap

(cherry picked from commit 1b15b9acf5)

* Add object selection arownd the object on select for tools based on AbstractTwoPointTool

(cherry picked from commit 26fab8ff36)

* Add object selection arownd the object on select for tools based on AbstractPathTool

(cherry picked from commit bbf53e4c35)

* Add object selection arownd the object on select for the TextTool

(cherry picked from commit ec5780b5c1)

* Edit color for any selected object

(cherry picked from commit 465a183978)

* Code refactoring - fix some missprints in MacOS CI

(cherry picked from commit 99ef8a55d4)

* Text object selection has wrong size

(cherry picked from commit cd365060f1)

* Make more noticeable object selection for TwoPoints and Path tools (except arrows)

(cherry picked from commit 67e304474f)

* Make more noticeable object selection for Arrows

(cherry picked from commit 066ff0a425)

* Make more noticeable object selection for Text

(cherry picked from commit e5e0afd585)

* fix - Make more noticeable object selection for Arrow tool

(cherry picked from commit e1028c7c78)

* fix - add '#include <cmath>' for round function

(cherry picked from commit a043036627)

* Add hotkey for removing objects

(cherry picked from commit 13059461d5)

* Add hotkey for removing objects

(cherry picked from commit 13059461d5)

* Code refactoring - remove outdated parts of undo/redo, some optimisation

(cherry picked from commit 8e08cea690)

* Add operator = for tool objects to be able to implement undo/redo stack based on the concept of full state saving for each step (just objects, not generated images and layers)

(cherry picked from commit 7ffc850883)

* Implement basic Undo/Redo step based on QUndoStack (without move and change color steps), some other fixes

(cherry picked from commit 818f3d2939)

* Add undo/redo stack for changing color

(cherry picked from commit 2b8a4ffc4f)

* fix - save objects state before color update for undo/redo stack and do not save state until mouse release event

(cherry picked from commit 4ba79d6b96)

* Add object movement to the undo/redo stack

(cherry picked from commit 1eacc35a15)

* fix - undo/redo from first to the latest item (still with a brutal hack)

(cherry picked from commit 421f43ff53)

* Do not close CaptureWidget if some tool object or selection is active

(cherry picked from commit 17fc95e167)

* Don't change color if right click is not in the object selection area

(cherry picked from commit d8ecead647)

* Edit thickness for the existing objects

(cherry picked from commit 9ab45497e6)

* fix - restore CaptureWidget thickness on object select

(cherry picked from commit 9ff9de5a91)

* Code refactoring - move repeated code to the function 'activeToolObject'

(cherry picked from commit c388d8c8ec)

* Code refactoring - remove unused lines and many fixes based on Clang-Tidy

(cherry picked from commit 7e19019dba)

* Code refactoring - remove unused lines and many fixes based on Clang-Tidy

(cherry picked from commit 7e19019dba)

* fix - Circle Counter Bubble numeration can skip some items if CPU is high loaded at that moment

(cherry picked from commit 6242fe8620)

* Code refactoring - make m_thickness variable in tool objects private and work with it as get/set methods

(cherry picked from commit f36e823864)

* fix - CircleTool doesn't place on CaptureWidget without mouse move
Code refactoring - make number of variables private for AbstractTwoPointTool and work with them as get/set methods

(cherry picked from commit 874ebc3afd)

* CircleCount - make circles more contrast and mouse preview opaque

(cherry picked from commit cebf3b831c)

* fix - CircleCount selection and changing color for existing object

(cherry picked from commit 477c230194)

* fix - Move selection area tool cannot be selected

(cherry picked from commit 38662ff86e)

* fix - Selection area disappears on click on existing tool out of area

(cherry picked from commit e98c60e226)

* Change MacOS hotkey Command+Backspace -> Backspace

(cherry picked from commit aa96b95634)

* Make rectangle tool with rounded borders (not cut), Make selection tool without rounded edges

(cherry picked from commit 2fd9c2ad9f)

* fix - Thickness doesn't changed for existing object on changing it in side panel

(cherry picked from commit 271731c891)

* fix - Sync selection on CaptureWidget when clicking on tool in panel

(cherry picked from commit 9db0c75ec0)

* Change selection on mouse down instead of mouse up event

(cherry picked from commit 3e09778b70)

* Code refactoring - remove variable m_rightClick from CaptureWidget, use another existing trigger to detect it

(cherry picked from commit 1abc595ce3)

* fix - Rectangle preview and final objects are not the same

(cherry picked from commit b31905892a)

* fix - Doesn't save image if the 'use fixed path' checkbox is checked

(cherry picked from commit 1470859aa2)

* fix - Latest Uploads max size value doesn't restore after reset/import settings

(cherry picked from commit fa72bacfc0)

* fix - impossible to disable the keyboard shortcut by clicking Delete button

(cherry picked from commit 74d36e4b3a)

* fix - MacOS - Increase and Decrease Size tool icon colors are not changed (dark/light) when changing main tool background color

(cherry picked from commit e48b685c90)

* fix - Selected region control points cannot be dragged on the screen corners

(cherry picked from commit 08bf02b5ee)

* fix - Object selects if mouse pointer above any object when TextTool is active

(cherry picked from commit b7a6a7efc8)

* fix - Test Tool doesn't close editor on next text item, you can see two editors and one of them will be never closed

(cherry picked from commit eb12f76fd7)

* Code refactoring - remove function in the CaptureToolObjects class with the same functional

(cherry picked from commit 1a108f7be4)

* Code refactoring - CaptureWidget::mousePressEvent function is split into a few, code became more readable

(cherry picked from commit dc850b3daa)

* optimization - remove unnecessary calls of CaptureWidget::drawToolsData

(cherry picked from commit c2432bd560)

* fix - Move tool doesn't work if any object is selected
fix - Active tool stays active if existing object is selected in the Tool Settings panel

(cherry picked from commit 6154feba57)

* fix - App freezes for a while when changing thickness of the pixelate to the minimal value

(cherry picked from commit 3a1c519c83)

* fix - Text Tool doubles on press ESC when text editing field is active

(cherry picked from commit 00bdebff75)

* fix - Image is pinned/saved with object selection frame if there is one

(cherry picked from commit 8187186072)

* fix - Object line thickness changes according to previously modified object when switching between objects via object list

(cherry picked from commit a4a367d30e)

* fix - Configuration: Filename doesn't set default value on clear

(cherry picked from commit 289663c0c8)

* Update README.md - Global shortcut for Ubuntu 20.04

(cherry picked from commit 3bee0aa0ac)

* fix - Saved screenshot has selection if some object is selected on Save

(cherry picked from commit e53bb33e80)

* fix - Saved screenshot has selection if some object is selected on Upload

* fix - Rename "Reset" to "Restore" in file settings for restoring saved file name rules in the configuration widget

(cherry picked from commit d2ac5a330f)

* Update Ukrainian and Russian translations

* fix - Shapes are displayed as semi-empty at the very beginning of drawing if the line is thick

(cherry picked from commit d8b09c5d52)

* fix - MacOS - Button "Tool Settings" is not visible on some displays if displays are vertically aligned

(cherry picked from commit 6af590a859)

* fix - Incorrect selection border for Rectangle/Pixelate tool

(cherry picked from commit c908d3b67c)

* Code refactoring - replace magic numbers

(cherry picked from commit c8e1ce345a)

* fix merge conflicts for Internationalization files

* fix - thickness shouldn't be less than one

(cherry picked from commit d8ea8a0db7)

* Update copyright info

Co-authored-by: Yuriy Puchkov <yuriy.puchkov@namecheap.com>
2021-04-19 19:28:10 -05:00
Martin-Eckleben 1bf75693dd Fixing commit for merging. This is a new feature to add a gui button for
chaging the global thickness.
2021-03-04 07:38:36 -06:00
Jeremy Borgman e03909c48a Removed icon symlinks to prevent windows issues with symlinks 2021-02-21 19:53:02 -06:00
Boyuan Yang d8f8a3aaeb data/img/material/: Remove unused png files
Flameshot after v0.8.5 release turned to use svg icons instead
of png icons for embedded Google Material Design icons. As a result,
the old png icons are now useless. This commit would remove the
leftover.

This commit closes: #1316 .
2021-02-17 21:38:03 -05:00
Yurii Puchkov bad270cce4 MacOS dmg package build (cmake only, no CI yet) 2020-11-27 02:00:12 -08:00
Yuriy Puchkov 654455e9ac Merge branch 'flameshot-org-master' into merge-from-upstream
# Conflicts:
#	.github/workflows/Linux-pack.yml
#	CMakeLists.txt
#	appveyor.yml
#	data/graphics.qrc
#	src/tools/imgur/imguruploader.cpp
2020-10-15 15:44:49 +03:00
borgmanJeremy f11073bc00 fixing icon regression (#1051)
* fixing icon regression

* fixed symlink
2020-10-12 08:40:35 -05:00
Yuriy Puchkov c92f8e3014 Merge branch 'flameshot-org-master' into bugfix/memory-leak
# Conflicts:
#	.github/workflows/Linux-pack.yml
#	CMakeLists.txt
#	data/graphics.qrc
#	src/config/configwindow.cpp
#	src/tools/imgur/imguruploader.cpp
2020-10-11 20:49:15 +03:00
borgmanJeremy 8ff94a95a8 Cleaned up flatpak build for flathub submission (#1040)
* Cleaned up flatpak build for flathub submission. Fixed app-id and other assets to match dbus naming.

* fixed missing updates

* fixing build issues
2020-10-10 13:04:19 -05:00
Yuriy Puchkov 8e92ea5ab4 Merge 0.8.3 upstream 2020-10-02 10:15:56 +03:00
Jeremy Borgman ecfaa2359b Fixed readme 2020-09-28 19:33:36 -05:00
Martin-Eckleben d349cb5f9d black and white plus and minus icons 2020-09-28 19:02:19 -05:00
Yuriy Puchkov d4d3b9eae0 Merge branch 'master-flameshotorg' into master_nc_merge_upstream
# Conflicts:
#	.travis.yml
#	appveyor.yml
#	data/graphics.qrc
#	data/img/app/keyboard.svg
#	data/img/material/black/delete.png
#	data/img/material/black/delete.svg
#	data/img/material/black/filepath.svg
#	data/img/material/black/shortcut.svg
#	data/img/material/white/filepath.svg
#	data/img/material/white/shortcut.svg
#	data/translations/Internationalization_hu.ts
#	data/translations/Internationalization_ka.ts
#	external/Qt-Color-Widgets/src/color_wheel.cpp
#	external/singleapplication/singleapplication.cpp
#	flameshot.pro
#	src/cli/commandlineparser.cpp
#	src/config/buttonlistview.cpp
#	src/config/configwindow.cpp
#	src/config/configwindow.h
#	src/config/geneneralconf.cpp
#	src/config/geneneralconf.h
#	src/config/uicoloreditor.cpp
#	src/config/uicoloreditor.h
#	src/core/controller.cpp
#	src/core/globalshortcutfilter.cpp
#	src/main.cpp
#	src/third-party/Qt-Color-Widgets/src/color_utils.cpp
#	src/tools/abstractactiontool.h
#	src/tools/abstractpathtool.h
#	src/tools/arrow/arrowtool.cpp
#	src/tools/arrow/arrowtool.h
#	src/tools/blur/blurtool.cpp
#	src/tools/capturetool.h
#	src/tools/circle/circletool.cpp
#	src/tools/circle/circletool.h
#	src/tools/copy/copytool.cpp
#	src/tools/copy/copytool.h
#	src/tools/exit/exittool.cpp
#	src/tools/exit/exittool.h
#	src/tools/imgur/imguruploader.cpp
#	src/tools/launcher/applaunchertool.cpp
#	src/tools/launcher/applaunchertool.h
#	src/tools/launcher/applauncherwidget.cpp
#	src/tools/launcher/openwithprogram.cpp
#	src/tools/line/linetool.cpp
#	src/tools/line/linetool.h
#	src/tools/marker/markertool.cpp
#	src/tools/marker/markertool.h
#	src/tools/move/movetool.cpp
#	src/tools/pencil/penciltool.cpp
#	src/tools/pencil/penciltool.h
#	src/tools/pin/pintool.cpp
#	src/tools/pin/pintool.h
#	src/tools/pin/pinwidget.cpp
#	src/tools/pixelate/pixelatetool.h
#	src/tools/rectangle/rectangletool.cpp
#	src/tools/rectangle/rectangletool.h
#	src/tools/redo/redotool.cpp
#	src/tools/redo/redotool.h
#	src/tools/save/savetool.cpp
#	src/tools/save/savetool.h
#	src/tools/selection/selectiontool.cpp
#	src/tools/selection/selectiontool.h
#	src/tools/sizeindicator/sizeindicatortool.cpp
#	src/tools/sizeindicator/sizeindicatortool.h
#	src/tools/storage/imgur/imguruploader.h
#	src/tools/storage/imgur/imguruploadertool.cpp
#	src/tools/storage/imgur/imguruploadertool.h
#	src/tools/text/textconfig.cpp
#	src/tools/text/texttool.cpp
#	src/tools/text/texttool.h
#	src/tools/toolfactory.cpp
#	src/tools/toolfactory.h
#	src/tools/undo/undotool.cpp
#	src/tools/undo/undotool.h
#	src/utils/confighandler.cpp
#	src/utils/confighandler.h
#	src/utils/dbusutils.cpp
#	src/utils/screenshotsaver.cpp
#	src/utils/screenshotsaver.h
#	src/widgets/capture/buttonhandler.cpp
#	src/widgets/capture/buttonhandler.h
#	src/widgets/capture/capturebutton.cpp
#	src/widgets/capture/capturebutton.h
#	src/widgets/capture/capturewidget.cpp
#	src/widgets/capture/capturewidget.h
#	src/widgets/capture/colorpicker.cpp
#	src/widgets/capturelauncher.cpp
#	src/widgets/infowindow.cpp
#	src/widgets/infowindow.h
#	src/widgets/panel/sidepanelwidget.cpp
#	src/widgets/panel/utilitypanel.cpp
#	src/widgets/panel/utilitypanel.h
#	translations/Internationalization_ca.ts
#	translations/Internationalization_de_DE.ts
#	translations/Internationalization_es.ts
#	translations/Internationalization_fr.ts
#	translations/Internationalization_ja.ts
#	translations/Internationalization_nl.ts
#	translations/Internationalization_pl.ts
#	translations/Internationalization_pt_br.ts
#	translations/Internationalization_ru.ts
#	translations/Internationalization_sk.ts
#	translations/Internationalization_sr.ts
#	translations/Internationalization_tr.ts
#	translations/Internationalization_uk.ts
#	translations/Internationalization_zh_CN.ts
#	translations/Internationalization_zh_TW.ts
2020-09-24 18:52:49 +03:00
Jeremy Borgman f34def6794 changed blur class name to pixelate to match implementation 2020-09-05 11:27:00 -05:00
Jeremy Borgman f5013df306 First pass at converting from qmake to cmake. 2020-07-10 20:10:14 -05:00