Commit Graph

510 Commits

Author SHA1 Message Date
James LaChance
472a275bb9 Exit non-zero when aborting with --raw. (#424)
This fixes #302. Note that I also added a non-zero exit status when DBus
fails to connect.
2018-12-28 16:39:04 +01:00
luzpaz
652689627f README: add repology badge inside collapsed div (#422)
Using https://repology.org/metapackage/flameshot/badges it's possible for users to see what version of flameshot are available in the package ecosystem. This badge is nested in an expandable div so it doesn't overwhelm the README with its size. This commit also fixes a minor typo
FYI HTML was used instead of markdown due to the markdown not being displayed.
2018-12-28 16:36:36 +01:00
Ahmed Zetao Yang
e52dc8ddc8 fix debian rules (#419)
* fix debian rules

* remove fedora 27 building

* change for code review

* rollback
2018-12-28 16:21:58 +01:00
luzpaz
665f309018 Misc. source comment typos (#423)
Found via `codespell -i 3 -w -S ./translations -L uint,exten -C 3`
2018-12-28 16:13:29 +01:00
Dharkael
122f376c40 Update README.md 2018-12-09 14:10:09 +01:00
Ahmed Zetao Yang
f0c200d54a upgrade travis-ci packages building (#412)
* update README.md

* adjust travis-ci packages building

* add fedora 29

* change build order
2018-12-09 14:04:25 +01:00
alok1111
94daa4fecd Update russian translation (#405) 2018-11-21 18:08:39 +01:00
Alfredo Ramos
2716631591 Document shortcut for sidebar (#401)
* Document shortcut for sidebar

* Use appveyor-retry to prevent transfer.sh timeouts
2018-11-14 16:51:22 +01:00
in-in
35459e165c fix broken link (#392)
They moved Github organisation
https://github.com/voidlinux/void-packages
2018-11-05 16:27:32 +01:00
Alfredo Ramos
ee2f583acd Fix some issues detected by Clazy (#384)
* Fix old style connect

* Fix unneeded QString memory allocations
2018-10-24 01:04:42 +02:00
dgw
7d91b00072 Make tools' (English) tooltip phrasing consistent (#375)
Some tooltips were written as imperatives ("Set foo to bar"), others
were written as simple present ("Performs foo action"). All should now
be consistently written in imperative form (unless I missed any…).
2018-10-21 10:22:21 +02:00
dgw
c614adcfea Update translation files to match #375 (#380)
Opened all 13 translation files and did a global find-and-replace for
each string I changed in #375.
2018-10-19 15:48:45 +02:00
Никола Радовановић (Nikola Radovanović)
36d7bf82c7 Add Serbian translation (#376) 2018-10-11 23:59:40 +02:00
Alfredo Ramos
da49ed556f [WIP] Add line thickness to side panel (#374)
* Add thickness slider

* Fix enums compatibility

* Rename ColorPickerWidget to SidePanelWidget
2018-10-10 23:34:42 +02:00
sicklylife.jp
6c49a227c4 Add Japanese Translation in .desktop file, and fix typos in ja.ts file. (#367) 2018-10-05 16:36:34 +02:00
Welinton
08f3aeab20 Small corrections in Brazilian Portuguese translation (#365) 2018-10-04 22:03:06 +02:00
Streppel
24a1c76f53 Adds Brazilian Portuguese translations (#364) 2018-10-04 18:15:29 +02:00
Streppel
c3ad9b6c41 Fixes #362 (#363)
This fixes #362, making the enter key copy the content of the GUI selection copy the content to the clipboard
2018-10-04 16:43:25 +02:00
sicklylife.jp
d945267203 Add japanese translation (#361) 2018-10-04 15:10:29 +02:00
lupoDharkael
affba85666 Remove Wayland duplicated screenshots after dbus calls 2018-09-28 23:31:22 +02:00
Ahmed Zetao Yang
503de1be04 Pin Tool: Improve adjustment (#352)
Fix pin widget adjustment position
2018-09-21 13:55:16 +02:00
lupoDharkael
415b059fb2 Fix #311
Flameshot was unable to start new captures after saving with
    Ctrl+s while having a text area active from the Text tool.
    This was caused by the overloaded call to close() which
    was deleting the text area instead of closing the capture
    and the consequent call of the destructor. That caused an
    always active capture session.
2018-09-13 15:35:49 +02:00
SeedPuller
07fe16f8b3 Update README.md (#343) 2018-09-11 00:13:33 +02:00
Carlos Hernandez
936d935864 Update snap files (#340)
* Update snap files and sync with deb

* Change snap grade to devel
2018-09-07 01:44:44 +02:00
Alfredo Ramos
dd24ca0eeb README cleanup (#339) 2018-09-05 22:53:56 +02:00
Dharkael
1d7186a2f0 Fix icon in README 2018-08-20 17:04:52 +02:00
Ahmed Zetao Yang
aee5c03ae7 Some improvements (#320)
* Remove surplus '-'

* Move logo to center position & add some badges
2018-08-20 16:55:12 +02:00
Boyuan Yang
2c0ec850f3 flameshot.svg: Use more strict grammar to fix preview on GitHub (#319) 2018-08-20 16:54:40 +02:00
Boyuan Yang
36c62f6e81 infowindow: Pop up infowindow at screen center (#318)
Currently info window will pop up at the topleft corner of the screen,
which is rather bothering. This patch will move the window to
screen center when popped up.

Since QGuiApplication::ScreenAt() is introduced since Qt 5.10, the
code will only take effect when compiled against Qt >= 5.10.

Signed-off-by: Boyuan Yang <073plan@gmail.com>
2018-08-19 18:33:00 +02:00
Ahmed Zetao Yang
52d9815450 Some Fixes for updating to v0.6.0 (#317)
* Fix name specification of packages

* Update rpm .spec file

* Update to v0.6.0
2018-08-18 17:04:40 +02:00
Dharkael
7643e53615 Update issue templates 2018-08-17 16:45:18 +02:00
lupoDharkael
106488b00a Update to v0.6 2018-08-17 14:17:40 +02:00
Boyuan Yang
0f2ae9fab6 flameshot.pro: Install icons into $prefix/share/icons/hicolor/ instead of $prefix/share/pixmaps (#309)
* flameshot.pro: Install SVG icon into $prefix/share/icons/hicolor/scalable/apps instead of $prefix/share/pixmaps

While #293 somehow solves the icon problem, it is not the best solution.
According to Freedesktop.org Icon Theme Specification
(https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html):

    Directory Layout

    [...]
    By default, apps should look in $HOME/.icons (for backwards compatibility),
    in $XDG_DATA_DIRS/icons and in /usr/share/pixmaps (in that order).
    [...]
    In order to have a place for third party applications to install their icons
    there should always exist a theme called "hicolor".

While using /pixmaps/ directory ensures the least priority in search
icons, the directory name itself "pixmaps" does not suite our actual
situation (provided that "flameshot.svg" is a scalable icon, not a *pixmap*).
I suggest that we place this icon into the "hicolor" theme (aka fallback theme)
in /icons/ directory under "scalable/apps/" subdirectory.

Proposed changes:

  1. Install flameshot.svg under
     $prefix/share/icons/hicolor/scalable/apps/
     instad of
     $prefix/share/pixmaps/ .

  2. Rename qmake "icon" target into "appsvgicon" target so that the
     name "icon" may still be used in the future for other tasks.

  3. The embedded rpm spec file is updated accordingly.

Signed-off-by: Boyuan Yang <073plan@gmail.com>

* img/app/flameshot.png: Use 128x128 size instead of 100x100

Converted using inkscape:

inkscape -z -e flameshot.png -w 128 -h 128 flameshot.svg

* img: Add hicolor subdir for installation under /usr/share/icons/hicolor/*

* flameshot.pro: Use wildcard to install hicolor icon dir

The embedded rpm spec file is updated too.
2018-08-12 12:05:36 +02:00
Jiachen Yang
59d88dd2de fix auto locale detection (#308)
Current implementation QLocale::system.language() will not correctly
differs Simplified Chinese with Traditional Chinese, which is causing
problems to load translations for zh_TW. This fix the problem by
following the documentation here:
https://doc.qt.io/qt-5/qtranslator.html#load-1
2018-08-12 11:39:42 +02:00
Boyuan Yang
8d782c2c47 appdata: Minor tweak on project_license line (Fix AppStream warning) (#310)
From https://appstream.debian.org/sid/main/issues/flameshot.html :

* metainfo-validation-issue
Validation of the metainfo file found a problem:
SPDX license ID 'GPLv3+' is unknown.

According to https://spdx.org/licenses/ , the correct identifier
for GPLv3+ is "GPL-3.0-or-later" now. This commit would make
that replacement.

Signed-off-by: Boyuan Yang <073plan@gmail.com>
2018-08-12 11:39:18 +02:00
Alfredo Ramos
b0000f8dcd Retry the commands if they timeout (#306) 2018-08-11 20:27:57 +02:00
Peter Cai
ae9d18ce9e blur: fix HiDPI awareness (#305)
When copying from a QPixmap, the rectangle area should be scaled according to `devicePixelRatio`.

This fixes #300.
2018-08-11 11:44:32 +02:00
Ahmed Zetao Yang
c980df1589 Update travis ci (#304)
Ubuntu 18.04 & Fedora 28 support
2018-08-10 11:32:37 +02:00
orschiro
27be72f81a Added French translation (#301) 2018-08-07 17:34:42 +02:00
Alfredo Ramos
046170d970 Upload packages only after a successful build (#294)
This reduces build time but this change was primarily made to place the commands to its right place.

This also did a small fix in the travis/linux_script.sh file to use paths defined in variables instead of using the hard-coded ones.
2018-07-31 10:55:39 +02:00
Alfredo Ramos
104e51d294 Change icon path (#293)
It now installs the image in any of the following paths, depending if CONFIG+=packaging was set in the qmake command.

/usr/local/share/pixmaps/
/usr/share/pixmaps

* Fix path for RPM packages
2018-07-31 10:54:36 +02:00
Alfredo Ramos
25790dbda8 Remove unneeded BASEDIR variable (#292)
qmake already generates a INSTALL_ROOT variable that can be used to
install in a custom directory.
2018-07-30 21:46:48 +02:00
Alfredo Ramos
7ba02666d1 Fix most of the issues reported by cppcheck (#290) 2018-07-29 00:17:50 +02:00
Alfredo Ramos
228c4f15e5 Use absolute locations in translation files (#288)
They provide context when using Qt Liguist, as it shows the source code where it is being used.

Also replaced QT (capital T) with Qt, as the latter is the correct name.
2018-07-28 00:03:02 +02:00
Boyuan Yang
fd99234bba README.md: Add info about flameshot in Debian 9 (#287) 2018-07-27 12:15:32 +02:00
Alfredo Ramos
d09580b873 Optimize and use SVG images where possible (#281)
SVG images have been optimized with svgo, this will slightly reduce package size though the main reason for this was to remove unneeded markup.

Image paths have been changed and merged, now the directory tree looks like this:

img
├── app
├── material
│   ├── black
│   └── white
└── preview

The reason to merge the paths is to avoid duplicate files for buttons and configuration.

SVG icons are used by default now, PNG images have not been deleted from the images directory, but they were deleted from the graphics.qrc resource file.

All image paths were updated accordingly, except in the tray icon, I could not make it work using the SVG image.
2018-07-24 00:43:01 +02:00
Alfredo Ramos
9748ae015e Fix image file saving (#279)
This change ensures that the file name contains the PNG extension.

Currently the screenshots are saved as PNG only, so this only checks if the absolute path contains .png, it does not check the file suffix (QFileInfo).

Fixes #278
2018-07-23 11:15:39 +02:00
Peter Cai
21670e3344 screengrabber: fix devicePixelRatio detection (#277) 2018-07-22 15:30:52 +02:00
Aylinux
1f6ac475c7 Update Internationalization_tr.ts (#276) 2018-07-21 01:31:29 +02:00
Alfredo Ramos
b301880872 Update Spanish translation and cleanup (#268)
* Fix TextTool warning

It throws the following warning:

src/tools/text/texttool.cpp:50: Class TextTool lacks Q_OBJECT macro

* Add missing translations

* Remove obsolete translations

lupdate -no-obsolete flameshot.pro
2018-07-07 22:37:32 +02:00