Bug 508878 - Haruna does not follow QT_QUICK_CONTROLS_STYLE
Summary: Haruna does not follow QT_QUICK_CONTROLS_STYLE
Status: RESOLVED FIXED
Alias: None
Product: Haruna
Classification: Applications
Component: generic (other bugs)
Version First Reported In: 1.4.0
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: george fb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-28 22:29 UTC by Michael
Modified: 2025-10-20 22:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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