.gear/photoflare.spec | 64 ++++++++++++++++++++++ .gear/rules | 3 + .gear/tags/list | 3 + .../usr/share/applications/photoflare.desktop | 1 + src/widgets/PaintWidget.cpp | 8 +-- 5 files changed, 72 insertions(+), 7 deletions(-) diff --git a/.gear/photoflare.spec b/.gear/photoflare.spec new file mode 100644 index 0000000..643cac6 --- /dev/null +++ b/.gear/photoflare.spec @@ -0,0 +1,64 @@ +#define git_hash %nil +%define git_hash .git.e200ab7538 + +Name: photoflare +Version: 1.6.9 +Release: alt2 + +Group: Graphics +Summary: Simple but powerful Cross Platform Image Editor +Url: https://photoflare.io/ +License: GPLv3+ + +Source: %name-%version.tar +Patch: %name-%version-alt.patch + +BuildRequires(pre): rpm-macros-qt5 +BuildRequires: qt5-base-devel qt5-tools-devel libGraphicsMagick-c++-devel libgomp-devel + +%description +This is an effort to bring quick, simple but powerful image editing to the +masses. Photoflare is inspired by the image editor currently only available +on Microsoft Windows - PhotoFiltre. However, it will not be a straight clone. +It is being built from the ground up to be much improved and cross platform too! + + +%prep +%setup +%patch -p1 + +# Fix version due build from master with Russian translation +sed -i 's/^\(\s*app\.setApplicationVersion(QObject::tr("\).*\("))\)/\1%version%git_hash\2/' src/main.cpp + +%build +%qmake_qt5 PREFIX=%_prefix +%make_build + +%install +%installqt5 + +%find_lang --with-qt --all-name %name + +%files -f %name.lang +%doc LICENSE.md .github/README.md +%_bindir/%name +%_iconsdir/hicolor/*/apps/%name.png +%_desktopdir/%name.desktop +%_man1dir/%name.* +%_datadir/pixmaps/%name.png +%_datadir/metainfo/*.appdata.xml + +%changelog +* Mon Feb 14 2022 Evgeny Sinelnikov 1.6.9-alt2 +- Drawing performance regression in 1.6.9 Photoflare#463 +- Fix missing taskbar icon on kde plasma + +* Mon Feb 14 2022 Evgeny Sinelnikov 1.6.9-alt1 +- Update to latest stable release + +* Sun Apr 04 2021 Evgeny Sinelnikov 1.6.7.1-alt1 +- Update to latest release + +* Mon Oct 05 2020 Evgeny Sinelnikov 1.6.5-alt1 +- Initial build for Sisyphus + diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..55f0585 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +spec: .gear/photoflare.spec +tar: v@version@:. +diff: v@version@:. . name=@name@-@version@-alt.patch diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..ba67a32 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1,3 @@ +75207ee0b077a86e558b2aa13d5e659a5801ab08 v1.6.5 +eddb1514a5b237b27b62d25f98baa945fa55d558 v1.6.7.1 +c6bbfaa4c9cc19c7968c18cbeeebc3678ec244a9 v1.6.9 diff --git a/installers/deb/DEBIAN/usr/share/applications/photoflare.desktop b/installers/deb/DEBIAN/usr/share/applications/photoflare.desktop index b2e67e2..7526160 100755 --- a/installers/deb/DEBIAN/usr/share/applications/photoflare.desktop +++ b/installers/deb/DEBIAN/usr/share/applications/photoflare.desktop @@ -22,4 +22,5 @@ Type=Application Categories=Graphics;2DGraphics; Keywords=photo;image;picture;photography;paint;graphics;editor; StartupNotify=false +StartupWMClass=io.photoflare.photoflare MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/pjpeg;image/png;image/svg+xml;image/tiff;image/x-bmp;image/x-gray;image/x-icb;image/x-ico;image/x-png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/x-pcx;image/x-targa;image/x-tga;image/openraster; diff --git a/src/widgets/PaintWidget.cpp b/src/widgets/PaintWidget.cpp index 90e3ade..8b0236f 100644 --- a/src/widgets/PaintWidget.cpp +++ b/src/widgets/PaintWidget.cpp @@ -25,7 +25,6 @@ #include #include #include -#include #include #include "../Settings.h" @@ -57,12 +56,7 @@ public: this->image = image; q->setSceneRect(image.rect()); canvas = addPixmap(QPixmap::fromImage(image)); - q->setStyleSheet("background-color: rgb(160, 160, 160);"); - - // Canvas drop shadow to separate from MdiArea colour - QGraphicsDropShadowEffect* effect = new QGraphicsDropShadowEffect(); - effect->setBlurRadius(15); - canvas->setGraphicsEffect(effect); + q->setStyleSheet("background-color: rgb(128, 128, 128);"); } void updateImageCanvas()