2403 Commits

Author SHA1 Message Date
Zain Qureshi e9eccbfb85 Fix first text edit being discarded after double-click (#5059)
Double-clicking a text annotation took the edit pointer and turned on
edit mode before refreshing the layers panel. The refresh rebuilds the
layer list, which emits layerChanged; updateActiveLayer then pushes the
pending size change to the undo stack, and the redo replaces the stored
objects with copies. The editor was left pointing at the old object, so
the first edit was dropped when the user clicked outside.

Refresh the layers panel first and fetch the text tool again afterwards,
so the editor and its undo snapshot use the stored annotation.

Fixes #4062

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:31:00 -06:00
Alex Castillo González 6a50b3a4e6 fix(cli): keep geometry out of raw PNG output (#5074) 2026-11-30 16:26:36 -06:00
Yuzukosho 98f170bbab snap: Add missing monochrome icon and disable update checker (#5076) 2026-11-30 16:26:14 -06:00
Weblate (bot) dcc3bd3175 Translated using Weblate (Swedish) (#5066)
Currently translated at 100.0% (472 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/sv/

Co-authored-by: Jonatan Nyberg <nickwick@users.noreply.hosted.weblate.org>
2026-11-23 14:11:03 +02:00
Faris Basha TM 1c7a704dab docs: fix dead xdg-desktop-portal-hyprland wiki link (#5063)
The Hyprland wiki moved the page to hypr-ecosystem/user/; the old
URL returns 404.
2026-11-18 10:41:35 +02:00
Weblate (bot) 1dfa279786 Translations update from Hosted Weblate (#5041)
* Translated using Weblate (Arabic)

Currently translated at 9.8% (46 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ar/

* Added translation using Weblate (Arabic (Levantine))

---------

Co-authored-by: Mohammad <mohammad049-mm@users.noreply.hosted.weblate.org>
2026-11-17 16:22:14 +02:00
Anush 75ac1fdbb5 rename idle close setting (#5057) 2026-11-14 09:02:57 -06:00
Wei-Lun Li 88a968c85c Let the text tool handle Ctrl+Backspace and other word deletion keys (#5048)
QTextEdit only claims the common editing keys in ShortcutOverride, so
Ctrl+Backspace while typing in the text tool fired the capture widget's
TYPE_CANCEL shortcut (Ctrl+Backspace by default) and closed the text box
instead of deleting the previous word. Accept the word and line deletion
key sequences in TextWidget, as is already done for Escape.

Fixes #4783
2026-11-13 16:18:53 -06:00
Weblate (bot) e8092a105a Translated using Weblate (Ukrainian) (#5036)
Currently translated at 100.0% (472 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/uk/

Co-authored-by: Viktor Varvaruk <visty@users.noreply.hosted.weblate.org>
2026-11-07 00:10:24 +02:00
borgmanJeremy f4f2e4e879 prep for v15 official release (#5027) v15.0.0 2026-11-02 17:46:35 -06:00
Francisco 03fa5c88d6 fix(macos): raise capture overlay above the menu bar and Dock (#4987)
Qt::WindowStaysOnTopHint maps to NSFloatingWindowLevel (8), which is
below the Dock (20) and the menu bar (24). Both were drawn over the
capture overlay, so the top and bottom of the screen could not be
selected and the tool buttons could end up hidden behind the Dock.

Set the overlay window level to NSMainMenuWindowLevel + 2, which is
still below pop-up menus so Qt menus remain visible.

Fixes #4097
Fixes #4346
Fixes #4825
2026-11-02 16:02:00 -06:00
borgmanJeremy 8f4fcf3966 fix missed clang-format (#5026) 2026-10-31 09:57:22 -05:00
Nikita 6b101d199b Make the UI language picker a filterable search box (#4891)
The plain dropdown listed every translation at once and overflowed
off-screen. Made the combobox editable with a popup-filtering
QCompleter so typing narrows the list instead.

Switched the save handler from currentTextChanged to textActivated -
the former fires on every keystroke once the box is editable, which
was spamming the "must restart" dialog and saving whatever partial
text was typed; textActivated only fires on an actual selection.
2026-10-31 09:50:02 -05:00
borgmanJeremy 7b6a2ea2d3 stage for 15.rc2 (#5025) 2026-10-30 17:23:10 -05:00
Weblate (bot) da34dcb1b2 Translated using Weblate (Estonian) (#5019)
Currently translated at 94.0% (444 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/et/

Co-authored-by: Priit Jõerüüt <jrthwlate@users.noreply.hosted.weblate.org>
v15.0.rc2
2026-10-26 23:20:56 +02:00
Anush 49dfb928c0 fix outdated links in readme (#4998) 2026-10-25 17:52:45 +02:00
Weblate (bot) 09e0d5d359 Translated using Weblate (Hebrew) (#5016)
Currently translated at 100.0% (472 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/he/

Co-authored-by: Raz Asheri <razasheri@users.noreply.hosted.weblate.org>
2026-10-25 10:52:42 +02:00
Francisco c1c4f202a2 fix(macos): publish clipboard captures as public.png/public.jpeg (#4985)
Qt has no native pasteboard mapping for image/png or image/jpeg, so the
encoded bytes were only exposed as com.trolltech.anymime.*, and non-Qt
apps fell back to the much larger public.tiff.

Register a QUtiMimeConverter that maps image/png and image/jpeg to their
native UTIs, and add the encoded bytes before setImageData so apps prefer
them over the TIFF fallback.

Fixes #4953
2026-10-22 10:35:35 -05:00
Lev Spassky b5d4d5090f Refresh launcher region inputs after each capture (#5004)
The capture launcher filled the WxH+x+y inputs from the cached last
region only when its window was created. After a capture the launcher
is hidden rather than closed, so reopening it from the tray menu shows
the region from before the capture, not the one that was just taken.

Reload the cached region whenever Flameshot::captureTaken is emitted.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 10:35:09 -05:00
Artem Lytkin 2cd9ad7849 Update save dialog suffix when the format filter changes (#4931)
ShowSaveFileDialog set the default suffix once from the configured
extension and never listened to QFileDialog::filterSelected. Picking
another image format in the file type dropdown therefore had no effect
on the saved file: a name typed without an extension still got the
configured suffix, and with a native dialog such as GTK's the extension
already present in the name was not swapped either, so it had to be
edited by hand.

Connect filterSelected, derive the suffix from the selected mime type
and make it the new default suffix. If the current name already ends in
one of the offered image formats, rename it to the new suffix as well;
the Qt widget dialog does that on its own, native dialogs do not.

Fixes #4708
2026-10-21 14:32:04 -05:00
Anush af3d2a9783 add more desktop terminal emulators to TerminalLauncher (#5010) 2026-10-21 14:28:50 -05:00
aokblast 1318bc0312 utils: Add missing iterator in strfparse (#5012)
In here, we use back_inserter but without including iterator
header. Include this to prevent build failure on libcxx.
2026-10-21 14:28:27 -05:00
Weblate (bot) 4bc3acacf0 Translated using Weblate (Chinese (Simplified Han script)) (#5002)
Currently translated at 100.0% (472 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/zh_Hans/

Co-authored-by: hotcat <hotcatty@users.noreply.hosted.weblate.org>
2026-10-17 00:46:57 +03:00
Prathamesh Indolikar e4357e38c3 [ Enhancement ] : Removed the close on double click on pinned captures and moved it to shortcut which is configurable through config (#4993)
* Removed the close on double click on pinned captures and moved it to shortcut which is configurable through config

* fix typo errors and address review comments

* Clang formatting
2026-10-13 15:55:23 -05:00
Francisco d1d7f195ec fix(macos): bundle translations inside the app (#4986)
The compiled .qm files were never copied into Flameshot.app, and
translationsPaths() did not look inside the bundle, so the macOS build
always showed the English UI.

Mark the .qm files with MACOSX_PACKAGE_LOCATION so CMake copies them to
Contents/Resources/translations at build time (before the bundle is
signed), and search that directory first on macOS.

Fixes #4976
Fixes #3684
2026-10-12 07:34:06 -05:00
Brad Terpstra 019bea68a4 Persist tool size when it changes, not when the notifier hides (#4961)
Tool size was only written to the config file from onToolSizeSettled(),
whose sole caller was the lambda connected to NotifierBox::hidden. The
NotifierBox hides on a 600ms single-shot timer, so the size was saved
only if the capture outlived that timer.

Two consequences:

- Changing the size with the mouse wheel, a digit key or the
  increase/decrease buttons and then completing the capture within 600ms
  (e.g. by pressing Copy) discarded the change.
- Changing the size with the side panel slider or spinbox never saved it
  at all. That path is connected to onToolSizeChanged() rather than
  setToolSize(), so it never shows the notifier and never reached
  onToolSizeSettled().

Move the write into onToolSizeChanged(), which every input path reaches,
and drop onToolSizeSettled(). This restores the persist-on-change
behaviour that predates the tool size refactor in 534f05b2 while keeping
that refactor's split between UI updates and configuration.

ConfigHandler::setToolSize() also has to accept CaptureTool::NONE. Its
final branch excluded it, so a write for a capture with no active tool
button silently did nothing, while ConfigHandler::toolSize() already
returns drawThickness() for NONE. Making the setter symmetric with the
getter is what fixes the side panel case, where no tool button need be
selected to move the slider.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-10 08:16:34 -05:00
David Dashti c7782a757c build(windows): enable Control Flow Guard for MSVC builds (#4967)
The Windows build already has ASLR, high-entropy ASLR and DEP; CFG is the
one mitigation missing. Both flags are needed: /guard:cf instruments the
code, /GUARD:CF marks the image. Set at the top level so the vendored
add_subdirectory() targets get it too.

Signed-off-by: David Dashti <47575784+Dashtid@users.noreply.github.com>
2026-10-10 08:13:29 -05:00
borgmanJeremy 902d2d6174 workaround to reposition window on Mate X11 (#4946) 2026-10-09 16:13:13 -05:00
Leo Camus 98f8d33771 Use the installed binary path in the desktop entry actions (#4950)
USE_LAUNCHER_ABSOLUTE_PATH exists because the flameshot binary is not
always on PATH, and src/CMakeLists.txt substitutes @LAUNCHER_EXECUTABLE@
into the desktop entry so the main Exec points at the installed binary.
The three Desktop Action entries were left calling a bare "flameshot":
after an install into a prefix that is not on PATH, launching Flameshot
from the application menu works but its Configure, Take screenshot and
Open launcher actions do nothing.

Substitute the same value into the action Exec lines. With the option
off, as the AppImage build sets it, @LAUNCHER_EXECUTABLE@ expands to
"flameshot" and the generated file is unchanged.
2026-10-09 16:12:53 -05:00
Weblate (bot) b5af6541fc Translated using Weblate (Estonian) (#4991)
Currently translated at 93.8% (443 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/et/

Co-authored-by: Priit Jõerüüt <jrthwlate@users.noreply.hosted.weblate.org>
2026-10-09 17:50:53 +03:00
kb01z 3455978ec0 Fix grammar and clarity in flameshot manpage (#4981) 2026-10-03 10:37:21 +03:00
Weblate (bot) c08fb56ce1 Translated using Weblate (Estonian) (#4982)
Currently translated at 92.5% (437 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/et/

Co-authored-by: Priit Jõerüüt <jrthwlate@users.noreply.hosted.weblate.org>
2026-10-03 10:35:30 +03:00
Weblate (bot) 2d478061ff Translated using Weblate (Ukrainian) (#4958)
Currently translated at 100.0% (472 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/uk/

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
2026-09-18 00:37:22 +03:00
Weblate (bot) 89861c4a95 Translations update from Hosted Weblate (#4954)
* Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (472 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/zh_Hans/

* Translated using Weblate (Khmer (Central))

Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/km/

---------

Co-authored-by: Lin Gan <190970720@qq.com>
Co-authored-by: SeyhaLite <sok123230@gmail.com>
2026-09-17 08:30:50 +03:00
borgmanJeremy 3458585e32 Prep for v15 beta (#4949) v15.0.rc1 2026-09-12 14:37:17 -05:00
Weblate (bot) 6cf839e240 Translations update from Hosted Weblate (#4945)
* Translated using Weblate (Polish)

Currently translated at 100.0% (472 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/pl/

* Added translation using Weblate (Persian (Old))

* Translated using Weblate (Spanish)

Currently translated at 86.4% (408 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/es/

---------

Co-authored-by: Brajan Gąbka <duke.axer@gmail.com>
Co-authored-by: Amin Shali <amshali@gmail.com>
Co-authored-by: Juan Benites <benitesjn@gmail.com>
2026-09-12 14:14:03 -05:00
Bekir SOYLU 29a33f5e6e Add option to disable the Circle Counter outline (#4882)
The counter bubble is always drawn with a contrasting ring. An outer
ellipse is filled with the anti-contrast color and the pen strokes both
ellipses with the contrast color, so the ring reads as black either way:
on dark draw colors it comes from the outer ellipse's fill, and on light
ones from the pen. There was no way to turn it off.

Add a `drawCircleCounterOutline` option together with a checkbox in
Configuration > General. It defaults to true, so the existing appearance
is unchanged.

Closes #3580

Co-authored-by: Bekir Soylu <bso@apptec360.com>
2026-09-10 19:22:17 -05:00
Artem Lytkin d3b0d5eadf Fall back to a same-language translation for unmatched locales (#4932)
configureTranslation loads the UI translation with QTranslator's locale
lookup, which for it_CH tries Internationalization_it_CH and
Internationalization_it. The Italian file is shipped as it_IT, so Swiss
Italian users get English and a "No Flameshot translation found"
warning. de_AT and de_CH miss de_DE the same way, sv_FI misses sv_SE.

When that lookup fails, look for any Internationalization_<lang>_*.qm in
the same directory and load the first one. The .ts files keep their
names since Weblate manages them.

Fixes #4921
2026-09-08 17:32:10 -05:00
Weblate (bot) 45eb42dbb5 Translated using Weblate (Tamil) (#4939)
Currently translated at 86.0% (406 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ta/

Co-authored-by: தமிழ்நேரம் <tamilneram247@gmail.com>
2026-09-07 08:50:48 -05:00
borgmanJeremy b26f76d339 Revise Homebrew installation steps for Flameshot (#4937)
Updated Homebrew installation instructions for Flameshot.
2026-09-06 16:26:59 -05:00
borgmanJeremy 3a0b468ac9 Revert "Fix clipboard copy on COSMIC Wayland (closes #4823) (#4902)" (#4936)
This reverts commit c65fb77e89.
2026-09-06 16:06:56 -05:00
Weblate (bot) b2b60c52e3 Translated using Weblate (Estonian) (#4924)
Currently translated at 83.6% (395 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/et/

Co-authored-by: Priit Jõerüüt <jrthwlate@users.noreply.hosted.weblate.org>
2026-09-02 23:52:21 +03:00
Weblate (bot) 24ce091c0f Translated using Weblate (Basque) (#4922)
Currently translated at 100.0% (472 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/eu/

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
2026-09-01 20:49:03 +03:00
Weblate (bot) c886a35bb8 Translated using Weblate (Turkish) (#4919)
Currently translated at 100.0% (472 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/tr/

Co-authored-by: Ümit Solmz <solmazumit1@yandex.com>
2026-08-30 11:50:34 +03:00
borgmanJeremy 32790fc723 Merge pull request #4916 from weblate/weblate-flameshot-flameshot 2026-08-28 14:11:14 -05:00
Anucha Hlownonkor 540816dd8b Translated using Weblate (Thai)
Currently translated at 93.0% (439 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/th/
2026-08-28 16:55:02 +00:00
Fernie 9250bc3579 async-notification (#4759)
* async-notification

The previous synchronous callWithArgumentList stalled the main thread for the QtDBus reply timeout (~25s) after every capture, freezing further captures until it returned. Probably related to Issue #2425.

* Fix missing closing curly brace

* clang-format

---------

Co-authored-by: Mehrad Mahmoudian <m.mahmoudian@gmail.com>
2026-08-27 19:47:07 -05:00
Brad Sawyer c65fb77e89 Fix clipboard copy on COSMIC Wayland (closes #4823) (#4902)
The GNOME clipboard workaround (keeping the capture window alive so
Wayland can serve clipboard data after the window closes) was gated
to GNOME only. COSMIC hits the exact same Wayland limitation but
never triggered the workaround, so copy-to-clipboard silently did
nothing on COSMIC. Extends the check to include COSMIC.

Also fixes a race in the workaround itself: it previously closed the
window on the first clipboard read of any kind, which could cut off
a paste consumer that probes available clipboard types before
issuing the real data fetch. It now closes only once the clipboard's
current data is no longer ours, and the safety-net timeout is raised
from 500ms to 30s, since COSMIC's compositor fetches clipboard data
lazily (on actual paste) rather than eagerly grabbing it like GNOME's
mutter does.

Verified on Pop!_OS 24.04 with COSMIC 1.0.0.
2026-08-27 19:46:36 -05:00
Artem Lytkin 9a06db4a92 Fix pin size on Windows for scaled screen (#4907)
Pinning a capture on a display with 150% scaling produces a pin window
half again as large as the region that was selected. #4614 fixed the
position of that window for v14.0.0; this is the size.

A capture started from the tray icon is fine, because the tray lives in
the daemon and createPin() hands the pixmap straight to attachPin().
Any invocation that runs in its own process instead -- `flameshot gui`
from a shell, a desktop or AutoHotkey shortcut, D-Bus -- finds
FlameshotDaemon::instance() null and serializes the capture to the
daemon. QDataStream writes a QPixmap as a plain image, which carries no
device pixel ratio, so the daemon reconstructs a pixmap that claims a
ratio of 1. PinWidget then lays out device pixels as if they were
logical ones and the window comes out too large by the scale factor.
The built-in PrintScreen hook is not affected; it runs inside the daemon
and takes the in-process path.

Send the ratio next to the pixmap so the serialized path ends up with
the same pixmap the in-process path already gets. Both transports share
the reading half, since the D-Bus adapter and the KDSingleApplication
handler each deserialize the message themselves. A message from an older
flameshot has no ratio appended; the read runs past the end, the stream
reports it, and the pixmap keeps the ratio it already had.

Checked on Windows 11, 1024x768 screen, QT_SCALE_FACTOR=1.5, pinning a
400x300 region. The pin window measured 621x471 before and 422x321
after. The capture is 400x300 device pixels either way, so the pin
should be that plus the 7pt margin on each side, and the patched size
matches the 414x314 measured on an unscaled screen to within the scaled
margin. Unscaled displays measured 414x314 both before and after.
2026-08-27 19:46:02 -05:00
Weblate (bot) 3e80710410 Translated using Weblate (Chinese (Traditional Han script)) (#4908)
Currently translated at 99.5% (470 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/zh_Hant/

Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
2026-08-25 09:21:27 +03:00