Commit Graph

927 Commits

Author SHA1 Message Date
Petru Gurduza
05226bc29f Copy path to clipboard using native separators (#3136)
* Copy path to clipboard using native separators

Signed-off-by: Petru Gurduza <petrugurduza1@gmail.com>

* Copy path to clipboard using native separators

Signed-off-by: Petru Gurduza <petrugurduza1@gmail.com>

* Use native separators in save path

Signed-off-by: Petru Gurduza <petrugurduza1@gmail.com>

---------

Signed-off-by: Petru Gurduza <petrugurduza1@gmail.com>
2023-09-16 13:49:17 +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
d-a-s
1d276a2cd3 applauncherwidget: enter key to launch current/first shown app (#3331)
* applauncherwidget: enter key to launch current/first shown app

* fix clang formatting
2023-09-14 18:02:04 +02:00
iacore
dff3fe8ccd Fix: make it compile with DISABLE_UPDATE_CHECKER (#3294) 2023-08-20 22:42:07 +02:00
L Batalha
694adbbc84 size indicator: fix disabling, refactor, improve performance (#3059) 2023-08-20 22:39:57 +02:00
Orkun Tokdemir
236534b17b Refactor CMake (#3104)
* Refactor CMake

* Update README.md
2023-06-20 23:53:10 +03:00
Daniel Novomeský
1df8748a10 Enable saving HEIF/HEIC when supported by 3rd party plug-ins (#3110) 2023-06-20 22:40:56 +02:00
JACK
3ededae574 Add grim-based wayland universal screenshot adapter (#3018)
* Add grim-based wayland universal screenshot adapter

In the past, flameshot used a special and superfluous method to call the wayland screenshot component
- dbus protocol communication. Although this method is supported by a large number of distributions,
it does not take into account the actual situation of wayland (including WM custom desktop environment users).
Now, we can enable the wayland universal screenshot adapter with the help of grim,
just add the following compilation flags in cmake:

```
-DUSE_WAYLAND_GRIM=true
```

In addition, the patch also adds HYPRLAND type and OTHER type support

* grim outputs to standard streams instead of files

* Automatically enable wayland clipboard support when USE_WAYLAND_GRIM is enabled

* Cancel USE_WAYLAND_GRIM Activate USE_WAYLAND_CLIPBOARD by default

Due to the dependency problem of USE_WAYLAND_CLIPBOARD,
cancel USE_WAYLAND_GRIM to activate USE_WAYLAND_CLIPBOARD by default,
Add a warning prompt to activate USE_WAYLAND_GRIM when USE_WAYLAND_CLIPBOARD is activated

* perform formatting

* modify cmake message

The grim adapter cannot be used in gnome and similar environments, modify the cmake message to express it

* remove generic screenshot adapter for gnome

Generic screenshot adapter is only supported on compositors that support wlroots

* Update format
2023-02-15 22:44:58 +01: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
Haris Gušić
c4d4fc1590 Fix clang formatting 2023-01-22 18:42:05 +01:00
danillucky1234
84f62b8af7 Fixed issue with black screen when use 'screen' argument (#3035)
* Minor refactoring, removed unused headers

* Grab the content from the right window

Fixed bug with black screen - bug was related to capturing
data outside the window

* fixed clangd formatting
2023-01-22 18:39:59 +01:00
Acpear
3b93863cf1 done "TODO use abstract logger" in src/main.cpp (#3044) 2023-01-22 18:38:45 +01:00
Haris Gušić
22f61c3614 Fix one special case 2023-01-22 18:28:27 +01:00
Haris Gušić
03a20fbf8a Add BraceWrapping rules (#3066) 2023-01-22 17:54:29 +01:00
Joshua-cla
685d0ee84b Snap to grid (#3016)
* Add widget to side panel

* Draw grid

* snap tool to grid

* Update french translation

* Format code with clang-format

Co-authored-by: joshua <joshua@qelectrotech.org>
2022-12-20 18:54:31 +01:00
Jeremy Fleischman
ff7028d8ab Fix documentation of flameshot gui --help (#2949)
In
6432490c31,
the format of `--print-geometry` changed from `W H X Y` to `WxH+X+Y`,
but it looks like we forgot to update the docs accordingly.
2022-10-16 07:50:44 -05:00
borgmanJeremy
f3577a005b Adding pin transparency (#2944)
* Adding pin transparency

* added hotkeys
2022-10-13 08:19:34 -05:00
borgmanJeremy
134117b558 Fix checkbox not initializing properly (#2940) 2022-10-06 12:29:08 -05:00
Dhruv Maroo
e9cd132a0e Add spin box to display the tool size value in the side panel (#2932) 2022-10-05 09:10:47 -05:00
Jordi Ortolá Ankum
e691e21bf9 flameshot#2856: Display main key in keyboard shortcut as lower-case (#2934)
The motivation behind this change is that single-key character
key shortcuts, currently displayed with an uppercase letter,
could suggest that the shortcut includes a Shift modifier.
Making the key lowercase takes away this confusion.
2022-10-05 09:10:11 -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
XMuli
11670457f3 build: MSVC with multicore compilation and actual tree directory display (#2900) 2022-10-03 12:27:44 -05:00
3nprob
5f67ab50fb Recognize Qtile WM (#2854) 2022-10-02 08:20:18 -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
borgmanJeremy
001726a565 fixed seg fault (#2831) 2022-07-25 10:15:52 -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
dsticks
57c8e8d893 Capture tool button looks at copy on double-click config setting and … (#2806)
* Capture tool button looks at copy on double-click config setting and sets button description accordingly.

* Ran clang-format on capturetoolbutton.cpp for code formatting.
2022-07-18 18:30:33 -05:00
El Thoro
6f6945ec23 Kde-connect share integration (#2551) (#2802) 2022-07-17 17:07:39 -05:00
wd5gnr
caf90215b4 Fixes --region to respect display scaling (#2788) 2022-07-17 10:23:25 -05:00
borgmanJeremy
d4b39c2aaa Swap size widget arguments to match --region (#2782) 2022-07-11 20:31:43 -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
borgmanJeremy
8f3bf194c4 Added ability to rotate pinned imaged (#2737) 2022-07-10 13:57:04 -05:00
wd5gnr
e68183451e Add integrated WXH display and options (#2766) 2022-07-10 13:55:40 -05:00
borgmanJeremy
822d2a5eee External all cli (#2752)
* Properly constructs external app command line

* DesktopFileParser only reads .desktop files

* Replace % in AppLauncherWidget in array not string

* applied clang-format

Co-authored-by: Al Williams <al.williams@awce.com>
2022-07-03 08:34:51 -05:00
borgmanJeremy
e319beff62 Fix magnify windows (#2746)
* Fixed issue with magnifier on windows where screen numbers were not monotonically increasing

* clang format

* fixed dos line endings

* remove qt debug
2022-07-02 13:06:41 -05:00
borgmanJeremy
899af3e3a6 disable option to launch on start by default (#2735) 2022-06-30 08:01:37 -05:00
borgmanJeremy
21f2a4e487 Added option to pin menu to close pin (#2736) 2022-06-30 07:58:52 -05:00
borgmanJeremy
de5241dd4e Fix size not appearing on size tool when started from launcher (#2734)
* Fix size not appearing on size tool when started from launcher

* clang format
2022-06-29 19:22:13 -05:00
Alaskra
44b19a90e1 fix issue about externalWidget launchapp (#2698) 2022-06-29 17:59:57 -05:00
Jeremy Borgman
1f3ca56b97 Fix pin widget scrolling on windows 2022-06-28 20:00:41 -05:00
thehunmonkgroup
13c034c1e4 rename Imgur API Key to Imgur Application Client ID (#2719) 2022-06-28 16:09:52 -05:00
luzpaz
04b57e4957 Fix typos (#2705)
Found via `codespell -q 3 -S *.ts,./external`
2022-06-28 08:25:08 -05:00
borgmanJeremy
37c4ab4f2a Revert "Another way to fix Launchapp unexpectly close (#2675)" (#2691)
This reverts commit adb58e247b.
2022-06-20 09:13:45 -05:00
Alaskra
adb58e247b Another way to fix Launchapp unexpectly close (#2675)
* fix unexpected close when launch external app

* update

* another way to fix launchapp crash

* format
2022-06-18 09:18:59 -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
Alaskra
fb42ad5c25 fix unexpected close when launch external app (#2617)
* fix unexpected close when launch external app

* update
2022-06-10 08:46:21 -05:00
Haris Gušić
98c1b029e3 Fix CloseOnLastWindow caused by tool change (#2645)
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2022-06-03 12:27:54 -05:00
borgmanJeremy
65e3a01360 Print info messages to stdout instead of stderr (#2639) 2022-06-02 08:38:31 -05:00