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>
* 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
* 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>
(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
* 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>
* 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.
* 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
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.
* 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
* 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>
* Allow symmetrical resizing using arrow keys when pressing ctrl
* Add feature to preserve aspect ratio while resizing selection window
* Format according to clang-format
* 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