add de-p1st-theme

This commit is contained in:
Daniel Langbein 2021-04-28 16:16:23 +02:00
parent 32beefa5f2
commit 42d42e4560
5 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1 @@
export QT_STYLE_OVERRIDE=adwaita

View File

@ -0,0 +1,31 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_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
}

View File

@ -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.
>

View File

@ -0,0 +1,2 @@
[Qt]
style=adwaita

View File

@ -0,0 +1 @@
depend on de-p1st-theme