Commit Graph

8 Commits

Author SHA1 Message Date
Sorin Adrian Savu
bbe14ad79b Add qt5-qtsvg to the dependencies (#560)
Without qt5-qtsvg tool icons aren't rendered see #335 - I had to manually install this package on xfce to have tool icons show up
2019-06-25 13:31:19 +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
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
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
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
Ahmed Zetao Yang
65e1ad9b57 fix flameshot.spec (#214) 2018-05-08 14:37:00 +02:00
Ahmed Zetao Yang
0fca6a488f deb and rpm packaging & add appveyor (#85)
* improvement of deb package

* rpm and deb package & add appveyor

* deploy to Github Release

* support fedora 27
2018-01-30 17:04:04 +01:00