diff options
Diffstat (limited to 'x11-libs/libfm-qt')
-rw-r--r-- | x11-libs/libfm-qt/Manifest | 2 | ||||
-rw-r--r-- | x11-libs/libfm-qt/files/libfm-qt-0.15.1-update-runtime-colours.patch | 57 | ||||
-rw-r--r-- | x11-libs/libfm-qt/libfm-qt-0.15.1-r1.ebuild | 49 |
3 files changed, 108 insertions, 0 deletions
diff --git a/x11-libs/libfm-qt/Manifest b/x11-libs/libfm-qt/Manifest index e6c020a47da2..a60a3522c5d5 100644 --- a/x11-libs/libfm-qt/Manifest +++ b/x11-libs/libfm-qt/Manifest @@ -1,6 +1,8 @@ AUX libfm-qt-0.14.1-phantom-desktop-files.patch 4871 BLAKE2B 9466f517953a8733f72296bda5c8b0081828fceda505f1603b7d5db193fb7bf72b6ce7c3c007877558b8f1a4295fa73a496e0b279790126a5859bdbd246b07c4 SHA512 19b3803704dba01da16725f1cc20b4cbb6b50210fcc7f0aea397dd8061cff55f9a0e57838b48f59649d6b8e4cc53dfb992b6160687cfa0b8f46b2dda6d431021 +AUX libfm-qt-0.15.1-update-runtime-colours.patch 1921 BLAKE2B 6adc0a2fc8a807adb865216406893aa35c2cd192daf004f71cddb62d8d4dfa357d6d79ee9d11bbd52567bca11e1d3a5225230b6350d46ae50eb9f4dc64978f79 SHA512 a3aa7bc3569c33299ce0bacb8fabd597ddbd2180138c6da2b99124893f7db486636234312cb1d8d0a63e08ddabfda0dc100ca6a4480aba7d60ab87cd48b92880 DIST libfm-qt-0.14.1.tar.xz 328192 BLAKE2B ff229256d3232eabc046da1fed3e4b4e51a09c3d1f2815fa726bad62f3fc53111e5d7f003e82e383dde4fe910584644e66613cbc1803ad0e11f7b6bdb2e30cfe SHA512 a265f6831a077ccb78a994828e6c69a22f2f6432b1f6ed6f404af41f013112870f7aee98067f2c466bec6cdfea040c10c7ce7e0f0ed977e5d266ec38e543d2a7 DIST libfm-qt-0.15.1.tar.xz 337396 BLAKE2B 619787039857f0b67245ff86f4c8de1b5305909bbf1dc07f20ab53f07a955d541853066a9011bb76d04a49006732ea23c4100e94fe3c61de77f1edbbbdef5854 SHA512 9bd3f61d830e4f7ba3e72d84e3ff1a07544f6f461d6eea7ecf2b31056020e08d47d83ef920b6e1a481a470dadfb995a6b3e3b57a13574d6abca617a84c71bdf5 EBUILD libfm-qt-0.14.1-r2.ebuild 891 BLAKE2B dbcefdec629df0704f774e9bb62f4469edcc8ba402299a50f0aa96fedb620736ce669bc8f30f4b294ae858204aa7f43ce29052b2fcb83a984a8354d9b1dee775 SHA512 a5e69d0ef73ee74fe74217ae55b2937ca42d6b70d52abeaad0f47649ebf409cb0a03c51b81ab417c86842272735d10b15bd00e6853ea45cdc0f825e8079fb31b +EBUILD libfm-qt-0.15.1-r1.ebuild 972 BLAKE2B c439999d322ec90b3bb35a8a61676ce3471a1decb3f70efc3bf1cc4bf2dbb3e88b1ccf0238ca5bd3f0dad9e78fe1a516c5b0e4e780953195bbc0103b56dfbf69 SHA512 88cc807873337f7eac71c5eee48d51572af07eb8964be5ea8f7867009fd3c636623c6da0c7039eac82f5781794b67cd51bfb81785fde7f8c40092796fc1bf598 EBUILD libfm-qt-0.15.1.ebuild 903 BLAKE2B 18b712e1adcf4cad1b8dbfd8c7466431c5fae102d285fb9d412688092dd7e30b54eef42f7bbca89a65cc0991021f66c1a7c40f0f7c1b414e7b452af1e2a4ef20 SHA512 3c01045c648f1fc33602e74a7fa8538c0144f8421858afa556dac933c41bda1707b4b62592ef98da2664778ca5f5571ffc2c4bbc25ff22cc325aaf9ea25253f7 MISC metadata.xml 314 BLAKE2B a40b71c62066cf524406556206999869edecf714d898236a8f277132e8b3752fec298cf9407e9010a1037bc757fafcbae32abec9b52a68492d414acd529c176a SHA512 edaddf48fd7cef23284164b7046e0e6b5ce1442847d3353ee8175177f00b06973d6588811b166dacbd7a1182942128792858a43e029d6aa874c1b8625b5e78f3 diff --git a/x11-libs/libfm-qt/files/libfm-qt-0.15.1-update-runtime-colours.patch b/x11-libs/libfm-qt/files/libfm-qt-0.15.1-update-runtime-colours.patch new file mode 100644 index 000000000000..850cd16a05ac --- /dev/null +++ b/x11-libs/libfm-qt/files/libfm-qt-0.15.1-update-runtime-colours.patch @@ -0,0 +1,57 @@ +From ecb0face63bfa593ce12caef4285d20cbf7f3f41 Mon Sep 17 00:00:00 2001 +From: Tsu Jan <tsujan2000@gmail.com> +Date: Mon, 1 Jun 2020 23:33:37 +0430 +Subject: [PATCH] Update text color of places view if style changes in runtime + +Otherwise, if the style is switched between dark and light in runtime (which will soon be possible in LXQt), the text color will not change and might not have enough contrast with its background. +--- + src/sidepane.cpp | 14 ++++++++++++++ + src/sidepane.h | 3 +++ + 2 files changed, 17 insertions(+) + +diff --git a/src/sidepane.cpp b/src/sidepane.cpp +index 73e74e7..d45adf9 100644 +--- a/src/sidepane.cpp ++++ b/src/sidepane.cpp +@@ -19,6 +19,7 @@ + + + #include "sidepane.h" ++#include <QEvent> + #include <QComboBox> + #include <QVBoxLayout> + #include <QHeaderView> +@@ -51,6 +52,19 @@ SidePane::~SidePane() { + // qDebug("delete SidePane"); + } + ++bool SidePane::event(QEvent* event) { ++ // when the SidePane's style changes, we should set the text color of ++ // PlacesView to its window text color again because the latter may have changed ++ if(event->type() == QEvent::StyleChange && mode_ == ModePlaces) { ++ if(PlacesView* placesView = static_cast<PlacesView*>(view_)) { ++ QPalette p = placesView->palette(); ++ p.setColor(QPalette::Text, p.color(QPalette::WindowText)); ++ placesView->setPalette(p); ++ } ++ } ++ return QWidget::event(event); ++} ++ + void SidePane::onComboCurrentIndexChanged(int current) { + if(current != mode_) { + setMode(Mode(current)); +diff --git a/src/sidepane.h b/src/sidepane.h +index 7218f6a..79b27a9 100644 +--- a/src/sidepane.h ++++ b/src/sidepane.h +@@ -111,6 +111,9 @@ class LIBFM_QT_API SidePane : public QWidget { + + void hiddenPlaceSet(const QString& str, bool hide); + ++protected: ++ bool event(QEvent* event) override; ++ + protected Q_SLOTS: + void onComboCurrentIndexChanged(int current); + diff --git a/x11-libs/libfm-qt/libfm-qt-0.15.1-r1.ebuild b/x11-libs/libfm-qt/libfm-qt-0.15.1-r1.ebuild new file mode 100644 index 000000000000..b820cada88ec --- /dev/null +++ b/x11-libs/libfm-qt/libfm-qt-0.15.1-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake xdg-utils + +DESCRIPTION="Qt Library for Building File Managers" +HOMEPAGE="https://lxqt.github.io/" + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/lxqt/${PN}.git" +else + SRC_URI="https://github.com/lxqt/${PN}/releases/download/${PV}/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +fi + +LICENSE="BSD GPL-2+ LGPL-2.1+" +SLOT="0/7" + +BDEPEND=" + dev-qt/linguist-tools:5 + >=dev-util/lxqt-build-tools-0.7.0 + virtual/pkgconfig +" +DEPEND=" + dev-libs/glib:2 + dev-qt/qtcore:5 + dev-qt/qtgui:5= + dev-qt/qtwidgets:5 + dev-qt/qtx11extras:5 + >=lxde-base/menu-cache-1.1.0:= + media-libs/libexif + x11-libs/libxcb +" +RDEPEND="${DEPEND} + !lxqt-base/lxqt-l10n +" + +PATCHES=( "${FILESDIR}/${PN}-0.15.1-update-runtime-colours.patch" ) + +pkg_postinst() { + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_mimeinfo_database_update +} |