Styles are only used if I start programms from terminal or via ALT+F2


#1

Hi!

Only if I start a programm via ALT+F2 or from terminal, the current selected style is used:

  • general style: qt5ct-style
  • custom color scheme: dusk
  • desktp style: DarkGlass.qss

Otherwise its just the default style! How?

about
boot loader …………………………………… BSD
type ……………………… BIOS
CPU ………………………………………………………… Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz
number of cores ……………… 2
memory ………………………………………………… 4096 MB available, 2502 MB free
OS git branch ……………………………………………………………………………………… trueos-stable-17.12
OS git revision ………………………………………………………………………………… d26791952
OS kernel build time ………………………………………………………… Sat 2017 Dec 9 18:10:09 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… STABLE
TrueOS version …………………………… TrueOS-Desktop-201712111405

More (TrueOS Desktop):

desktop environment …… Lumina
sound card driver ………… pcm0: <Realtek ALC268 (Analog 2.0+HP/2.0)> (play/rec) default
wireless driver ……………… wpi0
X11 drivers ………………………… modesetting_drv.so
pkg info | grep lumina
lumina-1.4.1_201712071357,3    Lumina Desktop Environment (meta-port)
lumina-archiver-1.4.1_201712071357 Archive manager from the Lumina Desktop
lumina-calculator-1.4.1_201712071357 Scientific calculator from the Lumina Desktop
lumina-core-1.4.1_201712071357 Lumina Desktop Environment
lumina-coreutils-1.4.1_201712071357 Lumina Desktop Environment
lumina-fileinfo-1.4.1_201712071357 File properties utility from the Lumina Desktop
lumina-fm-1.4.1_201712071357   Insight file manager from the Lumina Desktop
lumina-mediaplayer-1.4.1_201712071357 Streaming media player from the Lumina Desktop
lumina-pdf-1.4.1_201712071357  PDF viewer from the Lumina Desktop
lumina-screenshot-1.4.1_201712071357 Screenshot utility from the Lumina Desktop
lumina-textedit-1.4.1_201712071357 Plaintext editor from the Lumina Desktop

If i try to use qt5ct it complains about QT_QPA_PLATFORMTHEME being incorrect.

pkg info | grep qt5
fcitx-qt5-1.2.1                Fcitx support for Qt5
gstreamer1-qt5-1.2.0_5         Qt 5 bindings for GStreamer 1.x multimedia library
poppler-qt5-0.57.0_1           Qt 5 bindings to poppler
qt5-assistant-5.7.1            Qt 5 documentation browser
qt5-buildtools-5.7.1           Qt build tools
qt5-concurrent-5.7.1           Qt multi-threading module
qt5-core-5.7.1_4               Qt core non-graphical module
qt5-dbus-5.7.1                 Qt D-Bus inter-process communication module
qt5-gui-5.7.1_1                Qt graphical user interface module
qt5-help-5.7.1                 Qt online help integration module
qt5-imageformats-5.7.1_1       Qt plugins for additional image formats
qt5-linguist-5.7.1             Qt 5 translation tool
qt5-linguisttools-5.7.1        Qt localization tools
qt5-location-5.7.1             Qt location module
qt5-multimedia-5.7.1_2         Qt audio, video, radio and camera support module
qt5-network-5.7.1_1            Qt network module
qt5-opengl-5.7.1_1             Qt 5-compatible OpenGL support module
qt5-printsupport-5.7.1         Qt print support module
qt5-qmake-5.7.1_5              Qt Makefile generator
qt5-qml-5.7.1_1                Qt QML and JavaScript language module
qt5-quick-5.7.1_1              Qt declarative framework for dynamic user interfaces
qt5-script-5.7.1_2             Qt 4-compatible scripting module
qt5-sensors-5.7.1              Qt sensors module
qt5-sql-5.7.1                  Qt SQL database integration module
qt5-sqldrivers-sqlite3-5.7.1   Qt SQLite 3 database plugin
qt5-svg-5.7.1                  Qt SVG support module
qt5-testlib-5.7.1              Qt unit testing module
qt5-webchannel-5.7.1           Qt 5 library for integration of C++/QML with HTML/js clients
qt5-webkit-5.212.0.a2_4        QtWebKit with a more modern WebKit code base
qt5-websockets-5.7.1_1         Qt implementation of WebSocket protocol
qt5-widgets-5.7.1              Qt C++ widgets module
qt5-x11extras-5.7.1            Qt platform-specific features for X11-based systems
qt5-xml-5.7.1                  Qt SAX and DOM implementations
qt5-xmlpatterns-5.7.1          Qt support for XPath, XQuery, XSLT and XML Schema
qt5ct-0.34                     Qt 5 configuration tool
qt5pas-2.6                     Qt5 binding for FreePascal
trueos-libqt5-20171025         TrueOS QT5 Library
trueos-utils-qt5-201711020906  TrueOS QT5 Utilities
echo $QT_QPA_PLATFORMTHEME

lthemeengine

lthemeengine
lthemeengine: using lthemeengine plugin
Configuration path: /usr/home/xxx/.config/lthemeengine/
Shared QSS path: /usr/home/xxx/.config/lthemeengine/qss/, /usr/local/etc/xdg/lthemeengine/qss/, /share/lthemeengine/qss/, /usr/share/lthemeengine/qss/, /usr/local/share/lthemeengine/qss/
Got Color Dirs: ("/usr/home/xxx/.config/lthemeengine/colors/", "/usr/local/etc/xdg/lthemeengine/colors/", "/share/lthemeengine/colors/", "/usr/share/lthemeengine/colors/", "/usr/local/share/lthemeengine/colors/")

What can I do?


#2

The Lumina theme engine (lthemeengine) is the only Qt5 theme engine officially supported by the Lumina desktop.

“lthemeengine” is a fork/enhancement of the qt5ct engine with an updated configuration utility, so I would recommend just skipping qt5ct and use lthemeengine instead (same formats and stuff as qt5ct, but lots of new options such as desktop styles and a fixed up configuration utility).


#3

Thank you!

I removed qt5ct and use lthemeengine.

My goal is a uniform look across all programs.
But this seems to be hard, because of gtk2, gtk3, qt4, qt5

Still styles are not used (lthemeengine: QtCurve, darker) if a program is started via menu…
Only starting via terminal or ALT+F2 uses styles…

pkg for QtCurve
qt4-style-qtcurve-1.8.18_3     QtCurve widget style for Qt 4
qt5-style-qtcurve-1.8.18_3     QtCurve widget style for Qt 5
qtcurve-utils-1.8.18_3         QtCurve common files and libraries

Additionaly i created configuration files for gtk2 and gtk3 to use a theme similar to QtCurve, darker and DarkGlass styles (Arc-Dark):

pkg for gtk2, gtk3
gnome-themes-standard-3.22.3   Standard themes for GNOME
gtk-arc-themes-20170302_1      Arc-themes for GTK-2.0 and GTK-3.0 based desktop environments
gtk-murrine-engine-0.98.2_5    Murrine GTK+ 2.x cairo based engine
~/.gtkrc-2.0
style "user-font"
{
    font_name="Sans Serif"
}
widget_class "*" style "user-font" 
gtk-theme-name="Arc-Dark"
gtk-application-prefer-dark-theme=true
gtk-font-name="Sans Serif 9"
gtk-icon-theme-name="material-design-light"
gtk-cursor-theme-name="whiteglass"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="rgb"
~/.config/gtk-3.0/settings.ini
[Settings]
gtk-theme-name = Arc-Dark
gtk-application-prefer-dark-theme = true
gtk-font-name = Sans Serif 9
gtk-icon-theme-name = material-design-light
gtk-cursor-theme-name = whiteglass
gtk-cursor-theme-size = 0
gtk-toolbar-style = GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size = GTK_ICON_SIZE_SMALL_TOOLBAR
gtk-button-images = 1
gtk-menu-images = 1
gtk-enable-event-sounds = 1
gtk-enable-input-feedback-sounds = 1
gtk-xft-antialias = 1
gtk-xft-hinting = 1
gtk-xft-hintstyle = hintfull
gtk-xft-rgba = rgb

With these libreoffice, firefox, thunderbird, SciTE, gimp (all gtk) look as configured, even when started from the menu.

vlc, qpdfview, phototonic (all qt) still need to be started via ALT+F2 or terminal to use the configured styles…

Any hints to look into?


#4

Most style engines use an environment variable to be enabled, and you can have Lumina insert/adjust the session environment by modifying the ~/.config/lumina-desktop/envsettings.conf file (variable=value, one per line), or adjusting your ~/.xprofile (shell script).
I would look in those first to make sure you dont have some random setting mucking things up.