Bug 508878

Summary: Haruna does not follow QT_QUICK_CONTROLS_STYLE
Product: [Applications] Haruna Reporter: Michael <sexymimi64>
Component: genericAssignee: george fb <georgefb899>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 1.4.0   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michael 2025-08-28 22:29:02 UTC
SUMMARY
Haruna forces the use of the org.kde.desktop QtQuickControls style.

STEPS TO REPRODUCE
1.  Set the environment variables, for instance: `export QT_QUICK_CONTROLS_STYLE=Material`
2.  Run Haruna

OBSERVED RESULT
Haruna does not use the style specified in the environment variable.

EXPECTED RESULT
Haruna should be using the Material theme, or any theme specified in the variable.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
The issue comes from Haruna manually setting a QQuickStyle, even when the environment variable has been specified. An acceptable solution would probably be to replace line 38 of main.cpp:

QQuickStyle::setStyle(u"org.kde.desktop"_s);

With the following statements:

if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
     QQuickStyle::setStyle(u"org.kde.desktop"_s);
}
Comment 1 george fb 2025-10-20 22:38:57 UTC
Git commit 0c784ee0b439ea781cc85f1b01fad3742736fd9a by George Florea Bănuș.
Committed on 20/10/2025 at 22:38.
Pushed by georgefb into branch 'master'.

main: only set style to 'org.kde.desktop' if QT_QUICK_CONTROLS_STYLE is empty

M  +3    -1    src/main.cpp

https://invent.kde.org/multimedia/haruna/-/commit/0c784ee0b439ea781cc85f1b01fad3742736fd9a