Commit Graph

239 Commits

Author SHA1 Message Date
Jeremy Borgman c9633f3581 Remove deprecated msg and added error message 2026-06-25 16:40:36 -05:00
El Thoro 8b039730b5 Replace ifdef LINUX with UNIX to include BSD systems (#4700)
* Replace ifdef LINUX with UNIX to include BSD systems

* Replace  missed ifdef LINUX
2026-05-28 16:50:03 -05:00
Vladimir Mitnitsky e497f478dc fix(macos): make fullscreen capture overlay configurable (#4622)
macOS showFullScreen() triggers a native fullscreen space transition
animation when capturing. Replace with show() using FramelessWindowHint,
WindowStaysOnTopHint, and Qt::Tool flags to avoid the animation.

Add a 'useNativeFullscreen' config option (default: off) so users who
prefer the native fullscreen behavior can re-enable it from
Settings > General.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-23 20:33:54 -05:00
El Thoro 55c04e8b03 Option to disable tray icon on Windows (#4634) 2026-04-13 07:39:25 -05:00
Vladimir Mitnitsky d888a3f16c fix(macos): prevent config tab content from rendering behind tab bar (#4627)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-08 20:03:49 -05:00
borgmanJeremy 9803b386c2 Added feature on x11 and windows to capture active monitor (#4594) 2026-03-28 06:05:36 -05:00
borgmanJeremy 0ad3357a76 Added x11 fallback (#4588) 2026-03-26 19:14:42 -05:00
El Thoro 6e74dbe189 Code quality: Consistent includes, remove unused includes (#4587)
* Add pragma once

* Consistent includes

* Remove unused includes

* Fix Windows build

* Fix Windows build
2026-03-26 17:39:10 -05:00
El Thoro 199ff2586a Windows: Global "take screenshot" shortcut (#4556)
* Enable QHotkey on Windows to define global shortcut for taking screenshot

* Check if Windows forces PrntScr for its snipping tool; provide the option to change corresponding registry key by Flameshot

* Option to register Flameshot as MS-SCREENCLIP application

* clang-format

* Default shortcut

* Minor: Move MsScreenclip initialization to separate function

* Minor: Move MsScreenclip initialization to separate function
2026-03-14 09:59:28 -05:00
borgmanJeremy 53d4da8fcd Multimonitor fix (#4498)
* Rework capture system to only enter fullscreen widget on one monitor

* Sort monitor previews by screen position instead of Qt index (#4522)

The monitor selection dialog displayed monitors in Qt's default
screen order (by connector name, e.g. DP-1 before DP-2), which
can differ from the physical arrangement configured in the display
settings. This sorts the preview widgets by their X geometry
position so they match the user's actual left-to-right layout.

---------

Co-authored-by: Brian J. Cohen <brianjcohen@gmail.com>
2026-02-18 16:01:37 -06:00
borgmanJeremy 0a9983b057 Revert "Add support for logging to a log file in the $XDG_STATE_DIR/flameshot…" (#4425)
This reverts commit 0f37bf0997.
2025-12-03 20:16:06 -06:00
El Thoro d54096e76c Force PNG clipboard on Windows (#4413) 2025-11-28 10:35:24 -06:00
Sam Coulter 0f37bf0997 Add support for logging to a log file in the $XDG_STATE_DIR/flameshot (#4371)
(or equivelent directories on windows/mac-os)

By default logging to file is enabled for all log messages.

Filtering log messages written to disk by level severity and choosing a
different path to save the log files is configurable via the config menu.

There is also a shortcut on the about menu popup to open the configured
logging directory. This shortcut is disabled if logging to file is
disabled

The log file implements a simple roller that saves only the two most
recent sets of logs generated by flameshot. This should stop log
messages from eating users' disk.

We use cmake to check the version of QT6. If greater than or equal to
6.7, we set the default log directory to the standard App State
directory. If not, we use the app local data directory
2025-11-18 19:33:18 -06:00
El Thoro 652ad9f133 Add UI language selection (#4249)
* Add UI language config option

* Clang format
2025-09-23 19:32:32 -05:00
borgmanJeremy 02469326b3 Grab color shortcut rebase (#4164)
* Add shortcut for Grab Color

* Update README.md

* Improve description

* Add shortcut to flameshot.example.ini

---------

Co-authored-by: Alex P <alex.pantec@gmail.com>
2025-08-16 19:34:08 -05:00
borgmanJeremy 4f224d9ad2 Add option for insecure pixelation. Restor blur when size == 1 and insecure option is enabled (#4082) 2025-07-19 13:01:10 -05:00
borgmanJeremy 1d774e308a Make Imgur conditionally compiled in (#4034)
* Make Imgur conditionally compiled in

* Fix Macos build issues

* Fix windows and clang-format
2025-06-23 06:28:53 -05:00
El Thoro a57f6413f6 Fix compiler warnings (#4023)
* Fix unused return value

* Fix deprecated operator+

* Fix truncation from double to float

* Fix unreferenced local variable

* Use qWarning instead of AbstractLogger, because AbstractLogger creates a popup which could be annoying for missing translation messages.
2025-06-22 18:49:16 -05:00
El Thoro 0d5b318e12 Make StrftimeChooserWidget button layout creation independent if number of buttons is even or not. (#4033) 2025-06-22 18:46:09 -05:00
YashKale313 89679f5bb6 Added DD-MM-YYYY format option button in configuration menu. (#3710)
Co-authored-by: yash_kale <yash_kale@persistent.com>
2025-06-22 12:41:49 -05:00
Jeremy Borgman 2c99e97ed7 Fix more c++ 20 deprecations 2025-06-06 14:35:04 -05:00
borgmanJeremy 2732eb375c Port to QT6 on MacOs (#3977) 2025-06-04 18:41:55 -05:00
Jeremy Borgman 533c811016 fix missing header on ubuntu 22.04, apply clang-format, working on CI 2025-06-03 20:05:54 -05:00
El Thoro 88d6e14246 Replace QTextCodec with QStringDecoder/Encoder (#3965) 2025-06-01 12:10:08 -05:00
El Thoro 277eb2f437 Fixing deprecation for future Qt 6 support (#3962)
* Replace foreach

* Replace QRegExp with QRegularExpression

* Replace QApplication::fontMetrics

* Replace QColor::isValidColor

* Replace canConvert(QVariant)

* Replace QString::midRef and QCharRef

* Add TODO for replacing QDesktopWidget for Qt 6

* Add TODO for replacing QTextCodec for Qt 6

* Fix QWidget::enterEvent for Qt 6

* qRegisterMetaTypeStreamOperators done automatically in Qt 6

* Fix QWidget::mapToGlobal for Qt 6

* Migrate QDesktopWidget replacement from old qt6 branch

* Drop Qt 5 support
2025-05-31 12:42:40 -05:00
Harsh Narayan Jha 76f8067b2d Add useGrimAdapter option to the config window (#3943) 2025-05-21 14:01:26 -05:00
lvhung e9817d8a81 Implement reverse arrow (#2144) (#3477) 2025-05-14 06:41:52 -05:00
donutAnees be54ae9c0d Add Shortcut to Cancel current selection (#3751)
This PR adds the ability to close the selection using the Ctrl + Backspace
key combination, addressing issue #3319. The new shortcut
allows users to quickly exit the selection mode without relying on mouse
interactions.
2025-05-11 12:39:29 -05:00
borgmanJeremy f7923936f2 fix clang-format for another PR (#3931) 2025-05-10 17:21:08 -05:00
j4k0xb a293034a50 Add option to disable abort notification (#3610) 2025-05-10 16:08:23 -05:00
Anwarul Islam de11a36967 refactor: move general configuration tab to ConfigWindow first (#3655) 2025-05-10 16:08:09 -05:00
Oleksandr Honcharov f4cde19c63 Fix the known issue of saving JPEG to clipboard on macOS (#3724) 2025-05-04 07:26:32 -05:00
Y5 7236570ca2 Optionally confirm to quit after pressing Escape (#3758)
* config: add `showQuitPrompt` option

Signed-off-by: y5c4l3 <y5c4l3@proton.me>

* capturewidget: optionally show prompt on quit

Signed-off-by: y5c4l3 <y5c4l3@proton.me>

* capturewidget: apply theme in quit prompt

Signed-off-by: y5c4l3 <y5c4l3@proton.me>

---------

Signed-off-by: y5c4l3 <y5c4l3@proton.me>
2025-05-02 15:42:57 -05:00
Aman Gupta 61a6074bec delete current tool command name corrected (#3348) 2025-02-01 21:09:56 +02:00
Kit PANG f5f2e53489 Fix full/screen capture use last region (#3364)
* Fix full capture use last region

* Limit use last region to gui capture only

* Update config use last region wordings

* Preserve current translations for config use last region wordings
2023-10-10 02:07:50 +02:00
Mike Phillips c97c3aa546 Add JPEG Quality Option (#3285)
* fixes #3188 (#3254)

Add JPEG quality option

Signed-off-by: Mike Phillips <mdphillips375@gmail.com>

Revert "Add JPEG quality option"

This reverts commit 046497d8273a69ea1cc0f134a996a5ada818ed8c.

* Add JPEG Quality Option

* Fix local variable name

* JPEG Quality: Add .ini example and minor fixes.

* JPEG Quality: Add .ini example and minor fixes.

* Fix Formatting

---------

Co-authored-by: Mehrad Mahmoudian <m.mahmoudian@gmail.com>
2023-09-16 13:48:59 +02:00
El Thoro f7e41f4d70 Cppcheck and clazy warning fixes (#2821)
* Cppcheck and clazy warning fixes

* Clang-format

* Revert QRect call by value

* Revert QPoint call by value

* Revert complained renamings

---------

Co-authored-by: Haris Gušić <harisgusic.dev@gmail.com>
2023-01-29 16:01:02 +01:00
borgmanJeremy 134117b558 Fix checkbox not initializing properly (#2940) 2022-10-06 12:29:08 -05:00
Dhruv Maroo d2b38f962c Improve resizing in flameshot (#2931)
* Allow symmetrical resizing using arrow keys when pressing ctrl

* Add feature to preserve aspect ratio while resizing selection window

* Format according to clang-format
2022-10-03 12:33:20 -05:00
borgmanJeremy bd3431a9f5 Always show post upload actions (#2640) 2022-07-24 09:18:09 -05:00
Alaskra d05764997d add cmake option DISABLE_UPDATE_CHECKER (#2793)
* add cmake option DISABLE_UPDATE_CHECKER

* add cmake option DISABLE_UPDATE_CHECKER to compile out
updatechecker

* format code use `clang-format -i $(git ls-files "*.cpp" "*.h")`

* fallback wrong code format

* replace `add_definitions` with `add_compile_definitions`
2022-07-24 09:15:13 -05:00
borgmanJeremy 88f5c4745c cleaned up some PR formatting / names, removed old size indicator (#2778)
* cleaned up some PR formatting / names, removed old size indicator

* fixed clang format

* fixed clang format
2022-07-11 20:03:00 -05:00
Mikko Vedru 3898636544 Improve order and descriptions of Settings/General items (#2777)
* Improve descriptions in Settings/General

* Order Settings/General list more logically

- Startup items in the beginning
- Running and graphical items then
- Combined actions grouped together
etc
2022-07-10 19:27:10 -05:00
wd5gnr e68183451e Add integrated WXH display and options (#2766) 2022-07-10 13:55:40 -05:00
thehunmonkgroup 13c034c1e4 rename Imgur API Key to Imgur Application Client ID (#2719) 2022-06-28 16:09:52 -05:00
borgmanJeremy 5f751a2b7e Added missing strings to translation files (#2682)
* Added missing strings to translation files

* Added missing strings to translation files
2022-06-18 09:13:06 -05:00
borgmanJeremy 46801d933a Added the ability to cache the last region (#2615)
* Added the ability to cache the last region

* adding cli option

* addressed typo comments and applied clang-format
2022-06-01 09:18:54 -05:00
vozdeckyl de95c357de get rid of the empty string in the options (#2552) 2022-05-01 09:16:47 -05:00
borgmanJeremy c01ffeccf0 Allow users to override imgur key (#2503)
* Allow users to override imgur key

* Remove debug statements
2022-03-30 15:15:54 -05:00
Haris Gušić 54690d5be8 Major Controller refactor (#2295)
* Change Controller interface to mimic the CLI

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove obsolete handleCaptureTaken

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Extract system tray icon into separate class

The implementation is not complete and full of bugs

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove Controller::handleCaptureFailed

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix a QObject connection

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Controller: remove unused includes

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Make check for updates work again

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Move functionality to daemon and tray icon

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Rename SystemTray to TrayIcon

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Add missing trayicon.* files

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Add missing QDesktopWidget

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix syntax errors

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Add missing include

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Include missing QOperatingSystemVersion on Mac

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Move update checking to daemon

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove obsolete method Controller::doLater

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Some cleanup

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Rename Controller to Flameshot

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Final touches

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2022-03-25 09:47:21 -05:00