--- creation date: 2022-01-08 tags: [note,qt,gtk,linux,archlinux] --- # Theming Qt and Gtk Based on [ArchLinux Wiki](https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications). Unify Qt5/Qt6 and GTK2/GTK3/GTK4 design. Of course, this depends on your personal preference. If you pick * GNOME the default _Adwaita (dark)_ theme is very pleasing (also applied to Qt and Gtk3) and * for all other scenarios, _Arc (Darker)_ looks great, but of course, depends on your personal preferences. ## Theme To unify look in GTK and Qt applications GTK and Qt applications need to be themed in the same way. To have the most unified look afterwards, it's recommended that you look up if your theme of choice supports GTK2, GTK3, GTK4, Qt5 and Qt6. The Qt variants with `kvantum` or an explicit Qt theme for it. On ArchLinux most _kvantum_ themes are in the AUR and prefixed with `kvantum-theme-...`. ### Qt applications In any environment (your shell env and probably `envvars` of `environment.d`) source, e.g. `.zshenv`, set `export QT_QPA_PLATFORMTHEME="qt5ct"` (which is also forward compatible with `qt6ct`). | Variant | Plain Adwaita | Backported Adwaita (Gtk3) + Qt5/6 | Any other theme, example Arc Darker | |:------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Required packages |