mirror of
https://github.com/hyprwm/hyprland-qtutils.git
synced 2025-12-20 07:30:03 +01:00
core: Custom QT_QUICK_CONTROLS_STYLE fix (#20)
Some checks failed
Build / nix (push) Has been cancelled
Some checks failed
Build / nix (push) Has been cancelled
This commit is contained in:
parent
5ffdfc13ed
commit
629b15c19f
7 changed files with 26 additions and 26 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -34,6 +34,7 @@
|
||||||
build/
|
build/
|
||||||
.cache/
|
.cache/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
|
||||||
# nix
|
# nix
|
||||||
result*
|
result*
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ qt_add_qml_module(hyprland-dialog
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hyprland-dialog PRIVATE
|
target_link_libraries(hyprland-dialog PRIVATE
|
||||||
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
|
Qt6::Quick Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#include "Dialog.hpp"
|
#include "Dialog.hpp"
|
||||||
#include <hyprutils/string/VarList.hpp>
|
#include <QGuiApplication>
|
||||||
#include <print>
|
#include <QQmlApplicationEngine>
|
||||||
#include <qapplication.h>
|
|
||||||
#include <qqmlapplicationengine.h>
|
|
||||||
#include <qquickstyle.h>
|
|
||||||
#include <qtenvironmentvariables.h>
|
|
||||||
#include <QQmlContext>
|
#include <QQmlContext>
|
||||||
|
#include <QQuickStyle>
|
||||||
|
#include <QtEnvironmentVariables>
|
||||||
|
#include <print>
|
||||||
|
#include <hyprutils/string/VarList.hpp>
|
||||||
|
|
||||||
using namespace Hyprutils::String;
|
using namespace Hyprutils::String;
|
||||||
|
|
||||||
|
|
@ -75,7 +75,7 @@ int main(int argc, char* argv[]) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QGuiApplication app(argc, 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"))
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ qt_add_resources(hyprland-donate-screen "assets"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hyprland-donate-screen PRIVATE
|
target_link_libraries(hyprland-donate-screen PRIVATE
|
||||||
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
|
Qt6::Quick Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
#include "DonateScreen.hpp"
|
#include "DonateScreen.hpp"
|
||||||
#include <hyprutils/string/VarList.hpp>
|
#include <QGuiApplication>
|
||||||
#include <print>
|
#include <QQmlApplicationEngine>
|
||||||
#include <qapplication.h>
|
|
||||||
#include <qqmlapplicationengine.h>
|
|
||||||
#include <qquickstyle.h>
|
|
||||||
#include <qtenvironmentvariables.h>
|
|
||||||
#include <QQmlContext>
|
#include <QQmlContext>
|
||||||
|
#include <QQuickStyle>
|
||||||
|
#include <QtEnvironmentVariables>
|
||||||
|
#include <hyprutils/string/VarList.hpp>
|
||||||
|
|
||||||
using namespace Hyprutils::String;
|
using namespace Hyprutils::String;
|
||||||
|
|
||||||
|
|
@ -15,7 +14,7 @@ int main(int argc, char* argv[]) {
|
||||||
|
|
||||||
auto dialog = new CDonateScreen();
|
auto dialog = new CDonateScreen();
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QGuiApplication app(argc, argv);
|
||||||
app.setApplicationName("Support Hyprland");
|
app.setApplicationName("Support Hyprland");
|
||||||
app.setApplicationDisplayName("Support Hyprland");
|
app.setApplicationDisplayName("Support Hyprland");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ qt_add_resources(hyprland-update-screen "assets"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(hyprland-update-screen PRIVATE
|
target_link_libraries(hyprland-update-screen PRIVATE
|
||||||
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
|
Qt6::Quick Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
#include "UpdateScreen.hpp"
|
|
||||||
#include <hyprutils/string/VarList.hpp>
|
|
||||||
#include <print>
|
|
||||||
#include <qapplication.h>
|
|
||||||
#include <qqmlapplicationengine.h>
|
|
||||||
#include <qquickstyle.h>
|
|
||||||
#include <qtenvironmentvariables.h>
|
|
||||||
#include <QQmlContext>
|
|
||||||
#include "Dialog.hpp"
|
#include "Dialog.hpp"
|
||||||
|
#include "UpdateScreen.hpp"
|
||||||
|
#include <QGuiApplication>
|
||||||
|
#include <QQmlApplicationEngine>
|
||||||
|
#include <QQmlContext>
|
||||||
|
#include <QQuickStyle>
|
||||||
|
#include <QtEnvironmentVariables>
|
||||||
|
#include <print>
|
||||||
|
#include <hyprutils/string/VarList.hpp>
|
||||||
|
|
||||||
using namespace Hyprutils::String;
|
using namespace Hyprutils::String;
|
||||||
|
|
||||||
|
|
@ -40,7 +40,7 @@ int main(int argc, char* argv[]) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QGuiApplication app(argc, argv);
|
||||||
app.setApplicationName("Hyprland Updated!");
|
app.setApplicationName("Hyprland Updated!");
|
||||||
app.setApplicationDisplayName("Hyprland Updated");
|
app.setApplicationDisplayName("Hyprland Updated");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue