Commit Graph

89 Commits

Author SHA1 Message Date
Никола Радовановић (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
Streppel
24a1c76f53 Adds Brazilian Portuguese translations (#364) 2018-10-04 18:15:29 +02:00
sicklylife.jp
d945267203 Add japanese translation (#361) 2018-10-04 15:10:29 +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
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
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
2efc082599 Remove hard-coded Imgur client_id (#253)
This will allow users to set their own Imgur client_id passing the IMGUR_CLIENT_ID variable to qmake.

If the users does not set this variable, it will fallback to the default value.
2018-06-15 00:14:26 +02:00
lupoDharkael
6adcfef413 Add color tools inside the capture editor 2018-05-16 23:02:30 +02:00
lupoDharkael
5432614651 Add Text tool
closes #11
Add an initial version of the text tool.
This commit adds:
- Basic text tool.
- On demand thickness and color update.
- Generalized logic for future widget based tools.
2018-05-06 13:56:45 +02:00
lupoDharkael
48c058782a Implement single method capture request
The core now has a method requestCapture, which receives a
CaptureRequest object with all the needed information.
This reduces code duplication in future features.
2018-04-29 11:27:55 +02:00
lupoDharkael
213cd5d48c Prevent compilation with empty version
Compiling the project without git installed uses a hardcoded
version with a *-dev ending in the dev versions instead of
the specific commit information after the version.
2018-04-23 20:17:34 +02:00
lupoDharkael
205cd7c87b Add basic code for the Pin tool 2018-04-17 00:06:57 +02:00
lupoDharkael
f1ec6f885e Selection refactor
New improved selection code:
- Selection decopuled into a new class
- When you drag the selection against the limits it won't become
permanently smaller, it will "bounce" trying to recover its size.
If you drop it again it will adapt its size to the borders of the
screen.
- Fixed bugs in the button position algorithm.
- Implemented selection animations for future implementations.
2018-04-15 21:29:16 +02:00
lupoDharkael
522c9b1ed1 Add panel
The side panel opens with the Space key, this panel can contain
    widgets to assist the capture with more features.
    This commit fixes the preview of the tool hiding it when the
    mouse hovers a widget. This is more needed now having a new widget
    inside the CaptureWidget.
2018-04-13 20:26:24 +02:00
lupoDharkael
5746a58582 Code refactor
More flexible tool API
Minor code format fixes
Clipboard freeze fixed(?)
Arrow correcly growing close to the start point
Improve maintainability
Add undo/redo stack
2018-04-10 15:33:08 +02:00
Alfredo Ramos
1bf2829217 Use single desktop file with actions (#149)
* Merge desktop files

Use Desktop Actions instead of installing three different files, this would prevent confusion (see #140) and will make easier to maintain a single desktop entry.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887466
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#extra-actions

* Desktop entry cleanup

Translations were removed to start clean and because they need to be updated to match the new Name.
2018-03-04 12:23:51 +01:00
lupoDharkael
1fa3c8f81a Add custom packaging prefix to the translation paths 2018-02-12 20:59:26 +01:00
Rafael Arellano
56957caa5c Add prefix to translations in .pro (#112) 2018-02-12 20:50:17 +01:00
lupoDharkael
85da4a3045 Translation paths based on OS 2018-02-02 20:57:27 +01:00
lupoDharkael
cc8f697163 Improve folder organization 2018-01-30 15:23:44 +01:00
Daniel Napora
e0d70070bd Polish translation (#104) 2018-01-26 23:52:21 +01:00
lupoDharkael
5003ec26fb Update translations in .pro 2018-01-19 23:08:59 +01:00
lupoDharkael
05da137670 Minor code fixes 2018-01-18 17:16:34 +01:00
lupoDharkael
c8d4f613ff .pro cleanup 2018-01-17 23:30:38 +01:00
lupoDharkael
37a16a9e41 Change ./translation/* to ./translations/* 2018-01-16 20:01:49 +01:00
Peter Dave Hello
338a04921e Add Traditional Chinese translation (#89) 2018-01-16 18:19:47 +01:00
lupoDharkael
af937ddd25 Update .pro 2018-01-16 17:58:04 +01:00
lupoDharkael
bf9892d05e Use Native File Dialog 2018-01-14 16:21:33 +01:00
lupoDharkael
0c7bd9ca0c Open With tool: show native dialong on Windows 2018-01-13 17:21:40 +01:00
lupoDharkael
46b6485db7 Update translations 2018-01-13 15:07:19 +01:00
lupoDharkael
45538387f8 MSVC: Fix linker error 2018-01-12 17:07:14 +01:00
lupoDharkael
dc50cd9193 Fix invalid ui language name for Simplified Chinese (zh_CN) 2018-01-10 16:18:27 +01:00
Boyuan Yang
c726e06d3b appdata: Install appdata into /usr/share/metainfo (#71)
The appdata description file was installed into the legacy path /usr/share/appdata/ .

This commit would install appdata info into the canonical dir /usr/share/metainfo/ .

Refs:
 https://lintian.debian.org/tags/appstream-metadata-in-legacy-location.html
2018-01-09 17:32:35 +01:00
Vitaly Zaitsev
2d2ce8c84d Added AppData manifest file for Gnome Software. (#68)
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2018-01-08 21:31:46 +01:00
lupoDharkael
5bdaea9c1f Revert local path for translations 2018-01-08 17:05:07 +01:00
Alexander Wilms
4a11806d9c Make packaging for Flatpak easier (#57) 2018-01-07 13:14:24 +01:00
lupoDharkael
0b174e0a83 Update translations 2018-01-07 01:11:54 +01:00
lupoDharkael
619e19cf68 Fix version generation 2018-01-06 18:23:44 +01:00
lupoDharkael
2932e5930d Add configurable transparency
Now the opacity of the area outside the selection in the graphical
capture is configurable.
2017-12-31 17:46:26 +01:00
lupoDharkael
3258062d16 Windows fixes and adaptation
Binary will have icon
Start capture with Print key
Fix .rc generation
2017-12-28 18:18:14 +01:00
lupoDharkael
77aa604127 Remove dbus from Windows build 2017-12-26 02:00:07 +01:00
lupoDharkael
10a93ad49c Update .pro 2017-12-24 13:58:05 +01:00
lupoDharkael
c7147f9131 Use single desktop files 2017-12-23 15:39:29 +01:00
lupoDharkael
91a595644f Take program version from git tag 2017-12-19 21:15:17 +01:00
lupoDharkael
8e81c3361b Automatic translation generation in builds 2017-12-19 20:48:59 +01:00
lupoDharkael
a0fdb96e44 Open App tool: design changes
- Search bar with realtime search
- Show all app categories by default
2017-12-18 15:51:00 +01:00
lupoDharkael
5ba50ebf1d Add bash-completion in the install 2017-12-14 21:10:13 +01:00