From 73a09b47888340e92e6441043f823e3d45fb7b13 Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Sat, 2 Jan 2021 15:23:18 +0000 Subject: [PATCH] Adwaita compatible gtk2 and qt5 themes. --- desktop/lookandfeel/adwaita-qt/actions.py | 20 ++++++ desktop/lookandfeel/adwaita-qt/pspec.xml | 63 +++++++++++++++++ .../gnome-themes-extra-community/actions.py | 29 ++++++++ .../disable_insensitive_widget_shade.patch | 69 +++++++++++++++++++ .../gnome-themes-extra-community/pspec.xml | 55 +++++++++++++++ 5 files changed, 236 insertions(+) create mode 100644 desktop/lookandfeel/adwaita-qt/actions.py create mode 100644 desktop/lookandfeel/adwaita-qt/pspec.xml create mode 100644 desktop/lookandfeel/gnome-themes-extra-community/actions.py create mode 100644 desktop/lookandfeel/gnome-themes-extra-community/files/disable_insensitive_widget_shade.patch create mode 100644 desktop/lookandfeel/gnome-themes-extra-community/pspec.xml diff --git a/desktop/lookandfeel/adwaita-qt/actions.py b/desktop/lookandfeel/adwaita-qt/actions.py new file mode 100644 index 0000000000..db7769a3a8 --- /dev/null +++ b/desktop/lookandfeel/adwaita-qt/actions.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import cmaketools +from pisi.actionsapi import pisitools + +def setup(): + cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib") + +def build(): + cmaketools.make() + +def install(): + cmaketools.install() + + pisitools.dodoc("AUTHORS", "COPYING", "README.md") + diff --git a/desktop/lookandfeel/adwaita-qt/pspec.xml b/desktop/lookandfeel/adwaita-qt/pspec.xml new file mode 100644 index 0000000000..1110b0bc75 --- /dev/null +++ b/desktop/lookandfeel/adwaita-qt/pspec.xml @@ -0,0 +1,63 @@ + + + + + adwaita-qt + https://github.com/FedoraQt/adwaita-qt + + fury + wascheme@tuta.io + + GPLv2 + LGPLv2.1 + data + desktop.lookandfeel + A style to bend Qt applications to look like they belong into GNOME Shell. + A native style to bend Qt4 and Qt5 applications to look like they belong into GNOME Shell. + + https://github.com/FedoraQt/adwaita-qt/archive/1.2.0.tar.gz + + + cmake + qt5-base-devel + qt5-x11extras-devel + + + + + adwaita-qt + + libxcb + qt5-base + qt5-x11extras + + + /usr/lib + /usr/share/doc + + + + + adwaita-qt-devel + + adwaita-qt + qt5-base + + + /usr/lib/cmake + /usr/lib/pkgconfig + /usr/include + + + + + + 2021-01-02 + 1.2.0 + Beta rebuild. + fury + wascheme@tuta.io + + + + diff --git a/desktop/lookandfeel/gnome-themes-extra-community/actions.py b/desktop/lookandfeel/gnome-themes-extra-community/actions.py new file mode 100644 index 0000000000..91034dddda --- /dev/null +++ b/desktop/lookandfeel/gnome-themes-extra-community/actions.py @@ -0,0 +1,29 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import shelltools +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +t = "./themes/*/gtk-2.0" + +def setup(): + # do not build HighContrast theme. + pisitools.dosed("themes/Makefile.am", "\ HighContrast", "") + shelltools.system("sed -i '82a\ \ GtkMenuBar::window-dragging\ =\ 1' %s/main.rc" % t) + shelltools.system("sed -i '83a\ \ GtkToolbar::window-dragging\ =\ 1' %s/main.rc" % t) + shelltools.system("./autogen.sh --prefix=/usr") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.removeDir("/usr/share/locale") + pisitools.dodoc("LICENSE", "NEWS", "README.md") + diff --git a/desktop/lookandfeel/gnome-themes-extra-community/files/disable_insensitive_widget_shade.patch b/desktop/lookandfeel/gnome-themes-extra-community/files/disable_insensitive_widget_shade.patch new file mode 100644 index 0000000000..72cbd4c67e --- /dev/null +++ b/desktop/lookandfeel/gnome-themes-extra-community/files/disable_insensitive_widget_shade.patch @@ -0,0 +1,69 @@ +--- a/themes/Adwaita/gtk-2.0/gtkrc 2020-05-26 10:13:13.557213234 +0300 ++++ b/themes/Adwaita/gtk-2.0/gtkrc 2020-05-26 12:31:51.312349746 +0300 +@@ -34,6 +34,31 @@ + gtk-auto-mnemonics = 1 + gtk-primary-button-warps-slider = 1 + ++# https://www.opendesktop.org/u/thefrankenstein ++style "fix_ugly_text" ++{ ++ engine "murrine" ++ { ++ textstyle = 0 ++ text_shade = 1.0 ++ } ++} ++ ++class "GtkLabel" style "fix_ugly_text" ++class "GtkImage" style "fix_ugly_text" ++class "GtkComboBox" style "fix_ugly_text" ++class "GtkCellView" style "fix_ugly_text" ++class "GtkMenuItem" style "fix_ugly_text" ++widget_class "*.." style "fix_ugly_text" ++widget_class "*.." style "fix_ugly_text" ++widget_class "**" style "fix_ugly_text" ++widget_class "*." style:highest "fix_ugly_text" ++widget_class "*..*" style:highest "fix_ugly_text" ++widget_class "***" style:highest "fix_ugly_text" ++widget_class "****" style:highest "fix_ugly_text" ++widget_class "***" style:highest "fix_ugly_text" ++widget_class "***" style:highest "fix_ugly_text" ++ + # And hand over the control to the theme files + include "main.rc" + include "apps.rc" + +--- a/themes/Adwaita-dark/gtk-2.0/gtkrc 2020-05-26 10:20:15.758226186 +0300 ++++ b/themes/Adwaita-dark/gtk-2.0/gtkrc 2020-05-26 12:32:06.927679341 +0300 +@@ -34,6 +34,31 @@ + gtk-auto-mnemonics = 1 + gtk-primary-button-warps-slider = 1 + ++# https://www.opendesktop.org/u/thefrankenstein ++style "fix_ugly_text" ++{ ++ engine "murrine" ++ { ++ textstyle = 0 ++ text_shade = 1.0 ++ } ++} ++ ++class "GtkLabel" style "fix_ugly_text" ++class "GtkImage" style "fix_ugly_text" ++class "GtkComboBox" style "fix_ugly_text" ++class "GtkCellView" style "fix_ugly_text" ++class "GtkMenuItem" style "fix_ugly_text" ++widget_class "*.." style "fix_ugly_text" ++widget_class "*.." style "fix_ugly_text" ++widget_class "**" style "fix_ugly_text" ++widget_class "*." style:highest "fix_ugly_text" ++widget_class "*..*" style:highest "fix_ugly_text" ++widget_class "***" style:highest "fix_ugly_text" ++widget_class "****" style:highest "fix_ugly_text" ++widget_class "***" style:highest "fix_ugly_text" ++widget_class "***" style:highest "fix_ugly_text" ++ + # And hand over the control to the theme files + include "main.rc" + include "apps.rc" diff --git a/desktop/lookandfeel/gnome-themes-extra-community/pspec.xml b/desktop/lookandfeel/gnome-themes-extra-community/pspec.xml new file mode 100644 index 0000000000..bf4ca18eee --- /dev/null +++ b/desktop/lookandfeel/gnome-themes-extra-community/pspec.xml @@ -0,0 +1,55 @@ + + + + + gnome-themes-extra-community + https://gitlab.gnome.org/GNOME/gnome-themes-extra + + fury + wascheme@tuta.io + + LGPL2.1 + data + desktop.lookandfeel + GTK+2/3 themes. + Adwaita, Adwaita-Dark and HighContrast for GTK+2/3 base applications. + + https://github.com/4fury/gnome-themes-extra-community/archive/3.28.0.1.tar.gz + + + intltool + gtk2-devel + gtk3-devel + glib2-devel + librsvg-devel + gettext-devel + + + disable_insensitive_widget_shade.patch + + + + + gnome-themes-extra-community + + gtk2-engines-murrine + + + /usr/lib/gtk-2.0/2.10.0/engines/libadwaita.so + /usr/share/icons + /usr/share/themes + /usr/share/doc + + + + + + 2021-01-02 + 3.28.0.1 + Beta rebuild. + fury + wascheme@tuta.io + + + +