diff --git a/pkg/de-p1st-theme/99_qt5_theme.sh b/pkg/de-p1st-theme/99_qt5_theme.sh new file mode 100644 index 0000000..01c8d7c --- /dev/null +++ b/pkg/de-p1st-theme/99_qt5_theme.sh @@ -0,0 +1 @@ +export QT_STYLE_OVERRIDE=adwaita diff --git a/pkg/de-p1st-theme/PKGBUILD b/pkg/de-p1st-theme/PKGBUILD new file mode 100644 index 0000000..ffd62fa --- /dev/null +++ b/pkg/de-p1st-theme/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Daniel Langbein +_pkgname=theme +_reponame=arch +pkgname="de-p1st-$_pkgname" +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Uniform look for QT and GTK applications" +arch=('any') +url="https://codeberg.org/privacy1st/${_reponame}" +license=('MIT') +groups=() +depends=('adwaita-qt' 'adwaita-qt4') +makedepends=('git') +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("git+${url}.git") +noextract=() +sha256sums=('SKIP') + +package() { + cd "${_reponame}/pkg/${pkgname}" + + install -Dm0644 99_qt5_theme.sh "$pkgdir"/etc/profile.d/99_qt5_theme.sh + install -Dm0644 Trolltech.conf "$pkgdir"/etc/xdg/Trolltech.conf +} diff --git a/pkg/de-p1st-theme/README.md b/pkg/de-p1st-theme/README.md new file mode 100644 index 0000000..0f20896 --- /dev/null +++ b/pkg/de-p1st-theme/README.md @@ -0,0 +1,46 @@ +# Adwaita theme - in GTK and QT + +* https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#Adwaita + +**NOTE**: This has just been tested with XFCE4 so far! + +## GTK + +If using XFCE4 or Gnome this is the default theme. No action required. + +## qt5 + +```shell +aur sync -c adwaita-qt +``` + +Enable via env variable. + +```shell +echo 'export QT_STYLE_OVERRIDE=adwaita' | sudo tee -a /etc/profile.d/99_qt5_theme.sh +``` + +## qt4 + +```shell +aur sync -c adwaita-qt4 +``` + +Then edit `/etc/xdg/Trolltech.conf` : + +``` +# ... +[Qt] +style=adwaita +# ... +``` + +## A quote that gave me this idea + +> If you are using a GTK-based environment you need to configure +> Qt applications look and feel (using +> [adwaita-qt](https://github.com/FedoraQt/adwaita-qt) `qt5ct` +> `qt5-styleplugins`. You can read +> [this wiki page](https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#Styles_for_both_Qt_and_GTK) +> about it. +> \ No newline at end of file diff --git a/pkg/de-p1st-theme/Trolltech.conf b/pkg/de-p1st-theme/Trolltech.conf new file mode 100644 index 0000000..07637ef --- /dev/null +++ b/pkg/de-p1st-theme/Trolltech.conf @@ -0,0 +1,2 @@ +[Qt] +style=adwaita diff --git a/pkg/de-p1st-xfce4/TODO.txt b/pkg/de-p1st-xfce4/TODO.txt new file mode 100644 index 0000000..e389656 --- /dev/null +++ b/pkg/de-p1st-xfce4/TODO.txt @@ -0,0 +1 @@ +depend on de-p1st-theme \ No newline at end of file