« Qt » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
 
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 4 : Ligne 4 :


= [https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications Utiliser le thème Gtk dans les applications Qt] =
= [https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications Utiliser le thème Gtk dans les applications Qt] =
== [https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#QGnomePlatform QGnomePlatform] ==
{{warn | Requires a style that support both Qt and GTK.}}
<kode lang='bash'>
pacman -S qgnomeplatform
</kode>
<filebox fn='~/.zshenv' lang='bash'>
# QGnomePlatform: applies the appearance settings of GNOME for Qt applications
QT_QPA_PLATFORMTHEME=gnome
</filebox>


== [https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#QGtkStyle QGtkStyle] ==
== [https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#QGtkStyle QGtkStyle] ==
Ligne 17 : Ligne 28 :
</filebox>
</filebox>


== [https://wiki.archlinux.org/index.php/qt#Configuration_of_Qt5_apps_under_environments_other_than_KDE_Plasma Qt5ct - OLD] ==
== [https://wiki.archlinux.org/index.php/qt#Configuration_of_Qt5_apps_under_environments_other_than_KDE_Plasma Qt5ct] ==
Application pour configurer Qt5 (theme, style, font, icons) dans un [[Environnement_de_bureau|environnement de bureau]] sans integration de Qt.
Application pour configurer Qt5 (theme, style, font, icons) dans un [[Environnement_de_bureau|environnement de bureau]] sans integration de Qt.
* [https://fixmynix.com/lxqt-dark-style/ Ajouter le Color Scheme Breeze Dark]
* [https://fixmynix.com/lxqt-dark-style/ Ajouter le Color Scheme Breeze Dark]

Dernière version du 29 mars 2020 à 21:44

Liens

  • Qt sur Archlinux

Utiliser le thème Gtk dans les applications Qt

QGnomePlatform

Requires a style that support both Qt and GTK.
Bash.svg
pacman -S qgnomeplatform
~/.zshenv
# QGnomePlatform: applies the appearance settings of GNOME for Qt applications
QT_QPA_PLATFORMTHEME=gnome

QGtkStyle

Bash.svg
pacman -S qt5-styleplugins

# lancer mon_application_qt avec le thème gtk2
QT_QPA_PLATFORMTHEME=gtk2 mon_application_qt
~/.xprofile
export QT_QPA_PLATFORMTHEME="gtk2"

Qt5ct

Application pour configurer Qt5 (theme, style, font, icons) dans un environnement de bureau sans integration de Qt.

~/.config/qt5ct/colors/Breeze Dark.conf
[ColorScheme]
active_colors=#eff0f1, #31363b, #4c545c, #40464d, #171a1c, #2a2e32, #eff0f1, #ffffff, #eff0f1, #232629, #31363b, #111314, #3daee9, #eff0f1, #2980b9, #7f8c8d, #31363b, #000000, #31363b, #eff0f1
disabled_colors=#6e7175, #2e3338, #4a5259, #3e444a, #16191b, #282c30, #65686a, #ffffff, #6e7175, #212427, #2e3338, #101213, #2e3338, #6e7175, #234257, #404648, #2e3338, #000000, #31363b, #eff0f1
inactive_colors=#eff0f1, #31363b, #4c545c, #40464d, #171a1c, #2a2e32, #eff0f1, #ffffff, #eff0f1, #232629, #31363b, #111314, #224e65, #eff0f1, #2980b9, #7f8c8d, #31363b, #000000, #31363b, #eff0f1

Définir les variables d'environnement:

~/.xprofile
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_SCALE_FACTOR=1.2

Fonctionne aussi avec le fichier /etc/environment