Commit Graph

1867 Commits

Author SHA1 Message Date
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
Mehrad Mahmoudian
05c3b8746a Updated the shields.io badges (#3071) 2023-01-26 14:16:03 +02: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
Vojta
b4300d303d Fix typos in README (#2987)
* Fix minor typos in README

* Revert "Return" to "Enter" change
2022-11-17 14:28:53 +02:00
Stavros Ntentos
d17eb53816 improve: sha256sum-referenced files should be relative to the sha256sum file itself (#2963)
* improve: `sha256sum`-referenced files should be relative to the `sha256sum` file itself

`cd` to the directory before generating the files

Fixes: https://github.com/flameshot-org/flameshot/issues/2878

* Use `tee` instead of double-invocation (`coreutils` should be standard on any installation?)
2022-11-01 14:12:21 +02:00
Mudit Choudhary
edd228b938 fix: Invalid on Ubuntu link (#2952) 2022-10-25 16:56:40 +03: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
borgmanJeremy
49d7a15a19 Appimage continous (#2938)
* fixing appiamge pipeline

* fixing appimage pipeline
2022-10-05 14:21:55 -05:00
borgmanJeremy
7feedcad25 fixing appiamge pipeline (#2937) 2022-10-05 11:24:34 -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
a1346054
43e6e9de30 Remove executable bit from text file (#2897) 2022-10-02 08:19:27 -05:00
Weblate (bot)
f3f620ff39 Translations update from Hosted Weblate (#2836)
* Translated using Weblate (Finnish)

Currently translated at 100.0% (416 of 416 strings)

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

* Translated using Weblate (Finnish)

Currently translated at 100.0% (416 of 416 strings)

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

* Added translation using Weblate (Tamil)

* Translated using Weblate (Persian)

Currently translated at 99.7% (415 of 416 strings)

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

* Translated using Weblate (Basque)

Currently translated at 96.1% (400 of 416 strings)

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

* Translated using Weblate (Russian)

Currently translated at 100.0% (416 of 416 strings)

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

Co-authored-by: Kimmo Kujansuu <mrkujansuu@gmail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Mehrad Mahmoudian <m.mahmoudian@gmail.com>
Co-authored-by: Alex Gabilondo <alexgabi@disroot.org>
Co-authored-by: Vik <k3kelm4vw@mozmail.com>
2022-10-02 08:18:20 -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
Ahmed Zetao Yang
a951f93da4 Upgrade actions virtual environment (#2817)
* chore(ci): upgrade actions virtual environment

* chore(ci): upgrade actions

* chore(ci): upgrade vcpkg
2022-07-24 09:16:17 -05:00
Weblate (bot)
3464da752b Translated using Weblate (Chinese (Simplified)) (#2812)
Currently translated at 100.0% (416 of 416 strings)

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

Co-authored-by: JY3 <GeeyunJY3@gmail.com>
2022-07-24 09:15:29 -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
Mehrad Mahmoudian
82b43cc4d4 update the FAQ URL for the bug report template (#2828) 2022-07-24 09:12:11 -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
Weblate (bot)
48d5eb451f Translated using Weblate (German) (#2805)
Currently translated at 100.0% (416 of 416 strings)

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

Co-authored-by: Manolol <manolol@mailfence.com>
2022-07-17 17:07:53 -05:00
El Thoro
6f6945ec23 Kde-connect share integration (#2551) (#2802) 2022-07-17 17:07:39 -05:00
Weblate (bot)
1052337020 Translated using Weblate (French) (#2797)
Currently translated at 100.0% (416 of 416 strings)

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

Co-authored-by: Mathieu B <mathieu.bousquet2@gmail.com>
2022-07-17 10:23:38 -05:00
wd5gnr
caf90215b4 Fixes --region to respect display scaling (#2788) 2022-07-17 10:23:25 -05:00
TryWumbo
fa6164bedf fix minor typo in README.md (#2790)
appears to be missing a word
2022-07-17 10:22:55 -05:00
Zer0F8th
bbbbf252b2 docs: fixed the spelling of the word 'recordig' to 'recording'. (#2796) 2022-07-15 09:13: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
Weblate (bot)
b736080601 Translations update from Hosted Weblate (#2765)
* Translated using Weblate (French)

Currently translated at 100.0% (416 of 416 strings)

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

* Translated using Weblate (Swahili)

Currently translated at 8.8% (37 of 416 strings)

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

Co-authored-by: rene-coty <irenee.thirion@e.email>
Co-authored-by: Kipruto <kvinkipruto@gmail.com>
2022-07-06 19:22:27 -05:00
Weblate (bot)
33f48f4a9c Translations update from Hosted Weblate (#2759)
* Added translation using Weblate (Swahili)

* Translated using Weblate (Russian)

Currently translated at 100.0% (416 of 416 strings)

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

* Translated using Weblate (Hebrew)

Currently translated at 100.0% (416 of 416 strings)

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

Co-authored-by: Kipruto <kvinkipruto@gmail.com>
Co-authored-by: Viktor <xasertop@gmail.com>
Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2022-07-04 12:44:38 -05:00
borgmanJeremy
a6cf684138 switch to test slug until next release (#2757) 2022-07-04 12:44:26 -05:00
Creator54
f6355949ca remove unused whitespaces, add shell.nix and .envrc (#2749) 2022-07-03 11:19:54 -05:00
borgmanJeremy
96c2c82e62 added v12.1 release notes (#2754) 2022-07-03 08:48:12 -05:00
borgmanJeremy
70be63d478 preparing for v12.1 release (#2753) 2022-07-03 08:42:21 -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