From 1e4aac10ce5289daafc5f972c22251658733c7af Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 2 Feb 2019 12:15:00 +0000 Subject: x11-misc/pcmanfm-qt : use action view icons from theme please --- ...t-0.13.0-use_view_action_icons_from_theme.patch | 18 ++++++++ x11-misc/pcmanfm-qt/pcmanfm-qt-0.13.0-r2.ebuild | 46 --------------------- x11-misc/pcmanfm-qt/pcmanfm-qt-0.13.0-r3.ebuild | 48 ++++++++++++++++++++++ 3 files changed, 66 insertions(+), 46 deletions(-) create mode 100644 x11-misc/pcmanfm-qt/files/pcmanfm-qt-0.13.0-use_view_action_icons_from_theme.patch delete mode 100644 x11-misc/pcmanfm-qt/pcmanfm-qt-0.13.0-r2.ebuild create mode 100644 x11-misc/pcmanfm-qt/pcmanfm-qt-0.13.0-r3.ebuild (limited to 'x11-misc') diff --git a/x11-misc/pcmanfm-qt/files/pcmanfm-qt-0.13.0-use_view_action_icons_from_theme.patch b/x11-misc/pcmanfm-qt/files/pcmanfm-qt-0.13.0-use_view_action_icons_from_theme.patch new file mode 100644 index 00000000..c9dccf4f --- /dev/null +++ b/x11-misc/pcmanfm-qt/files/pcmanfm-qt-0.13.0-use_view_action_icons_from_theme.patch @@ -0,0 +1,18 @@ +diff -Nur a/pcmanfm/mainwindow.cpp b/pcmanfm/mainwindow.cpp +--- a/pcmanfm/mainwindow.cpp 2018-05-21 20:14:54.000000000 +0100 ++++ b/pcmanfm/mainwindow.cpp 2019-02-02 12:12:29.726816339 +0000 +@@ -164,10 +164,10 @@ + loadBookmarksMenu(); + + // set generic icons for view actions +- ui.actionIconView->setIcon(style()->standardIcon(QStyle::SP_FileDialogContentsView)); +- ui.actionThumbnailView->setIcon(style()->standardIcon(QStyle::SP_FileDialogInfoView)); +- ui.actionCompactView->setIcon(style()->standardIcon(QStyle::SP_FileDialogListView)); +- ui.actionDetailedList->setIcon(style()->standardIcon(QStyle::SP_FileDialogDetailedView)); ++ ui.actionIconView->setIcon(QIcon::fromTheme(QLatin1String("view-list-icons"), style()->standardIcon(QStyle::SP_FileDialogContentsView))); ++ ui.actionThumbnailView->setIcon(QIcon::fromTheme(QLatin1String("view-list-thumbnails"), style()->standardIcon(QStyle::SP_FileDialogInfoView))); ++ ui.actionCompactView->setIcon(QIcon::fromTheme(QLatin1String("view-list-text"), style()->standardIcon(QStyle::SP_FileDialogListView))); ++ ui.actionDetailedList->setIcon(QIcon::fromTheme(QLatin1String("view-list-details"), style()->standardIcon(QStyle::SP_FileDialogDetailedView))); + + // Fix the menu groups which is not done by Qt designer + // To my suprise, this was supported in Qt designer 3 :-( diff --git a/x11-misc/pcmanfm-qt/pcmanfm-qt-0.13.0-r2.ebuild b/x11-misc/pcmanfm-qt/pcmanfm-qt-0.13.0-r2.ebuild deleted file mode 100644 index 6a30cb33..00000000 --- a/x11-misc/pcmanfm-qt/pcmanfm-qt-0.13.0-r2.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils - -SRC_URI="https://github.com/lxde/${PN}/releases/download/${PV}/${P}.tar.xz" -KEYWORDS="amd64" - -DESCRIPTION="Fast lightweight tabbed filemanager (Qt port)" -HOMEPAGE="https://wiki.lxde.org/en/PCManFM" - -LICENSE="GPL-2+" -SLOT="0" -IUSE="samba" - -CDEPEND=">=dev-libs/glib-2.50.0:2 - dev-qt/qtcore:5 - dev-qt/qtdbus:5 - dev-qt/qtgui:5 - dev-qt/qtwidgets:5 - dev-qt/qtx11extras:5 - >=x11-libs/libfm-1.3.0:= - >=x11-libs/libfm-qt-0.13.1:= - x11-libs/libxcb:=" -RDEPEND="${CDEPEND} - samba? ( net-fs/samba - x11-misc/pcmanfm-qt-share - ) - x11-misc/xdg-utils - virtual/eject - virtual/freedesktop-icon-theme" -DEPEND="${CDEPEND} - dev-qt/linguist-tools:5 - >=dev-util/intltool-0.40 - sys-devel/gettext - virtual/pkgconfig" - -src_configure() { - local mycmakeargs=( - -DPULL_TRANSLATIONS=NO - ) - - cmake-utils_src_configure -} diff --git a/x11-misc/pcmanfm-qt/pcmanfm-qt-0.13.0-r3.ebuild b/x11-misc/pcmanfm-qt/pcmanfm-qt-0.13.0-r3.ebuild new file mode 100644 index 00000000..50414c9e --- /dev/null +++ b/x11-misc/pcmanfm-qt/pcmanfm-qt-0.13.0-r3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +SRC_URI="https://github.com/lxde/${PN}/releases/download/${PV}/${P}.tar.xz" +KEYWORDS="amd64" + +DESCRIPTION="Fast lightweight tabbed filemanager (Qt port)" +HOMEPAGE="https://wiki.lxde.org/en/PCManFM" + +LICENSE="GPL-2+" +SLOT="0" +IUSE="samba" + +PATCHES=( "${FILESDIR}/${P}-use_view_action_icons_from_theme.patch" ) + +CDEPEND=">=dev-libs/glib-2.50.0:2 + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + dev-qt/qtx11extras:5 + >=x11-libs/libfm-1.3.0:= + >=x11-libs/libfm-qt-0.13.1:= + x11-libs/libxcb:=" +RDEPEND="${CDEPEND} + samba? ( net-fs/samba + x11-misc/pcmanfm-qt-share + ) + x11-misc/xdg-utils + virtual/eject + virtual/freedesktop-icon-theme" +DEPEND="${CDEPEND} + dev-qt/linguist-tools:5 + >=dev-util/intltool-0.40 + sys-devel/gettext + virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DPULL_TRANSLATIONS=NO + ) + + cmake-utils_src_configure +} -- cgit v1.2.3