core: move to hyprland-qt-support instead of KDE's qqc2
Some checks are pending
Build / nix (push) Waiting to run

This commit is contained in:
Vaxry 2025-01-08 23:03:27 +01:00
parent 6cc1cf51f2
commit 196e043cd9
4 changed files with 4 additions and 4 deletions

View file

@ -4,4 +4,4 @@ This repo houses some qt/qml utilities that might be used by various hypr* apps.
## Dependencies ## Dependencies
This depends on qt6 and qt6-qml, as well as qqc2-desktop-style from KDE. This depends on qt6 and qt6-qml, as well as hyprland-qt-support.

View file

@ -79,7 +79,7 @@ int main(int argc, char* argv[]) {
app.setApplicationName(appTitle.isEmpty() ? dialog->title : appTitle); app.setApplicationName(appTitle.isEmpty() ? dialog->title : appTitle);
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE"))
QQuickStyle::setStyle("org.kde.desktop"); QQuickStyle::setStyle("org.hyprland.style");
QQmlApplicationEngine engine; QQmlApplicationEngine engine;
engine.rootContext()->setContextProperty("dialog", dialog); engine.rootContext()->setContextProperty("dialog", dialog);

View file

@ -20,7 +20,7 @@ int main(int argc, char* argv[]) {
app.setApplicationDisplayName("Support Hyprland"); app.setApplicationDisplayName("Support Hyprland");
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE"))
QQuickStyle::setStyle("org.kde.desktop"); QQuickStyle::setStyle("org.hyprland.style");
QQmlApplicationEngine engine; QQmlApplicationEngine engine;
engine.rootContext()->setContextProperty("donateScreen", dialog); engine.rootContext()->setContextProperty("donateScreen", dialog);

View file

@ -45,7 +45,7 @@ int main(int argc, char* argv[]) {
app.setApplicationDisplayName("Hyprland Updated"); app.setApplicationDisplayName("Hyprland Updated");
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE"))
QQuickStyle::setStyle("org.kde.desktop"); QQuickStyle::setStyle("org.hyprland.style");
// This entire mechanism fucking sucks, // This entire mechanism fucking sucks,
// but I also suck at qml and I want to avoid spawning a new process as it takes a while. // but I also suck at qml and I want to avoid spawning a new process as it takes a while.