Adwaita compatible gtk2 and qt5 themes.
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>adwaita-qt</Name>
|
||||
<Homepage>https://github.com/FedoraQt/adwaita-qt</Homepage>
|
||||
<Packager>
|
||||
<Name>fury</Name>
|
||||
<Email>wascheme@tuta.io</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<License>LGPLv2.1</License>
|
||||
<IsA>data</IsA>
|
||||
<PartOf>desktop.lookandfeel</PartOf>
|
||||
<Summary>A style to bend Qt applications to look like they belong into GNOME Shell.</Summary>
|
||||
<Description>A native style to bend Qt4 and Qt5 applications to look like they belong into GNOME Shell.</Description>
|
||||
<Archive sha1sum="3253f04d6e668db776811fac749ac8e011e9cdeb" type="targz">
|
||||
https://github.com/FedoraQt/adwaita-qt/archive/1.2.0.tar.gz
|
||||
</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>cmake</Dependency>
|
||||
<Dependency>qt5-base-devel</Dependency>
|
||||
<Dependency>qt5-x11extras-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>adwaita-qt</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libxcb</Dependency>
|
||||
<Dependency>qt5-base</Dependency>
|
||||
<Dependency>qt5-x11extras</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>adwaita-qt-devel</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">adwaita-qt</Dependency>
|
||||
<Dependency>qt5-base</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/cmake</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2021-01-02</Date>
|
||||
<Version>1.2.0</Version>
|
||||
<Comment>Beta rebuild.</Comment>
|
||||
<Name>fury</Name>
|
||||
<Email>wascheme@tuta.io</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
|
||||
@@ -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")
|
||||
|
||||
+69
@@ -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 "*.<GtkButton>.<GtkLabel>" style "fix_ugly_text"
|
||||
+widget_class "*.<GtkComboBox>.<GtkCellView>" style "fix_ugly_text"
|
||||
+widget_class "*<GtkImage>*" style "fix_ugly_text"
|
||||
+widget_class "*.<GtkLabel>" style:highest "fix_ugly_text"
|
||||
+widget_class "*.<GtkMenuItem>.*" style:highest "fix_ugly_text"
|
||||
+widget_class "*<GtkMenuBar>*<GtkLabel>*" style:highest "fix_ugly_text"
|
||||
+widget_class "*<GtkToolbar>*<GtkButton>*<GtkLabel>*" style:highest "fix_ugly_text"
|
||||
+widget_class "*<GtkToolbar>*<GtkLabel>*" style:highest "fix_ugly_text"
|
||||
+widget_class "*<GtkButton>*<GtkLabel>*" 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 "*.<GtkButton>.<GtkLabel>" style "fix_ugly_text"
|
||||
+widget_class "*.<GtkComboBox>.<GtkCellView>" style "fix_ugly_text"
|
||||
+widget_class "*<GtkImage>*" style "fix_ugly_text"
|
||||
+widget_class "*.<GtkLabel>" style:highest "fix_ugly_text"
|
||||
+widget_class "*.<GtkMenuItem>.*" style:highest "fix_ugly_text"
|
||||
+widget_class "*<GtkMenuBar>*<GtkLabel>*" style:highest "fix_ugly_text"
|
||||
+widget_class "*<GtkToolbar>*<GtkButton>*<GtkLabel>*" style:highest "fix_ugly_text"
|
||||
+widget_class "*<GtkToolbar>*<GtkLabel>*" style:highest "fix_ugly_text"
|
||||
+widget_class "*<GtkButton>*<GtkLabel>*" style:highest "fix_ugly_text"
|
||||
+
|
||||
# And hand over the control to the theme files
|
||||
include "main.rc"
|
||||
include "apps.rc"
|
||||
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gnome-themes-extra-community</Name>
|
||||
<Homepage>https://gitlab.gnome.org/GNOME/gnome-themes-extra</Homepage>
|
||||
<Packager>
|
||||
<Name>fury</Name>
|
||||
<Email>wascheme@tuta.io</Email>
|
||||
</Packager>
|
||||
<License>LGPL2.1</License>
|
||||
<IsA>data</IsA>
|
||||
<PartOf>desktop.lookandfeel</PartOf>
|
||||
<Summary>GTK+2/3 themes.</Summary>
|
||||
<Description>Adwaita, Adwaita-Dark and HighContrast for GTK+2/3 base applications.</Description>
|
||||
<Archive sha1sum="02d7407a66fcdcaee236b48631922cf59458626c" type="targz">
|
||||
https://github.com/4fury/gnome-themes-extra-community/archive/3.28.0.1.tar.gz
|
||||
</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>intltool</Dependency>
|
||||
<Dependency>gtk2-devel</Dependency>
|
||||
<Dependency>gtk3-devel</Dependency>
|
||||
<Dependency>glib2-devel</Dependency>
|
||||
<Dependency>librsvg-devel</Dependency>
|
||||
<Dependency>gettext-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">disable_insensitive_widget_shade.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gnome-themes-extra-community</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>gtk2-engines-murrine</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/gtk-2.0/2.10.0/engines/libadwaita.so</Path>
|
||||
<Path fileType="data">/usr/share/icons</Path>
|
||||
<Path fileType="data">/usr/share/themes</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2021-01-02</Date>
|
||||
<Version>3.28.0.1</Version>
|
||||
<Comment>Beta rebuild.</Comment>
|
||||
<Name>fury</Name>
|
||||
<Email>wascheme@tuta.io</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
|
||||
Reference in New Issue
Block a user