diff options
Diffstat (limited to 'x11-libs/libfm-qt')
-rw-r--r-- | x11-libs/libfm-qt/Manifest | 1 | ||||
-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, 0 insertions, 107 deletions
diff --git a/x11-libs/libfm-qt/Manifest b/x11-libs/libfm-qt/Manifest index 22fe6c60e66d..8917760ee768 100644 --- a/x11-libs/libfm-qt/Manifest +++ b/x11-libs/libfm-qt/Manifest @@ -1,2 +1 @@ -DIST libfm-qt-0.15.1.tar.xz 337396 BLAKE2B 619787039857f0b67245ff86f4c8de1b5305909bbf1dc07f20ab53f07a955d541853066a9011bb76d04a49006732ea23c4100e94fe3c61de77f1edbbbdef5854 SHA512 9bd3f61d830e4f7ba3e72d84e3ff1a07544f6f461d6eea7ecf2b31056020e08d47d83ef920b6e1a481a470dadfb995a6b3e3b57a13574d6abca617a84c71bdf5 DIST libfm-qt-0.16.0.tar.xz 348548 BLAKE2B 41c52efc5b71d924c06d55a5b94e7f9a1c4feda0a664d83b0de906479bdb644260a68136720baeb1958a48b08019b72de34b6066f51c19e5c5fb65afcd9e903c SHA512 5de63408a641b0e77cb319952e428aee9cd35db9ec3e6726a8327ebc53f5641cf66b28dbabd96797c64a253b1e41421dbe05dcb9f4bc7941bd92676bbfa9cc84 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 deleted file mode 100644 index 850cd16a05ac..000000000000 --- a/x11-libs/libfm-qt/files/libfm-qt-0.15.1-update-runtime-colours.patch +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index f7b601350e68..000000000000 --- a/x11-libs/libfm-qt/libfm-qt-0.15.1-r1.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# 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 -} |