2025-01-07 14:53:19 +01:00
|
|
|
#include "DonateScreen.hpp"
|
2025-09-28 20:23:48 +03:00
|
|
|
#include <QGuiApplication>
|
|
|
|
|
#include <QQmlApplicationEngine>
|
2025-01-07 14:53:19 +01:00
|
|
|
#include <QQmlContext>
|
2025-09-28 20:23:48 +03:00
|
|
|
#include <QQuickStyle>
|
|
|
|
|
#include <QtEnvironmentVariables>
|
|
|
|
|
#include <hyprutils/string/VarList.hpp>
|
2025-01-07 14:53:19 +01:00
|
|
|
|
|
|
|
|
using namespace Hyprutils::String;
|
|
|
|
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
|
// disable logs to not trash the stdout
|
|
|
|
|
qputenv("QT_LOGGING_RULES", QByteArray("*.debug=false;qml=false"));
|
|
|
|
|
|
|
|
|
|
auto dialog = new CDonateScreen();
|
|
|
|
|
|
2025-09-28 20:23:48 +03:00
|
|
|
QGuiApplication app(argc, argv);
|
2025-01-07 14:53:19 +01:00
|
|
|
app.setApplicationName("Support Hyprland");
|
|
|
|
|
app.setApplicationDisplayName("Support Hyprland");
|
|
|
|
|
|
|
|
|
|
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE"))
|
2025-01-08 23:03:27 +01:00
|
|
|
QQuickStyle::setStyle("org.hyprland.style");
|
2025-01-07 14:53:19 +01:00
|
|
|
|
|
|
|
|
QQmlApplicationEngine engine;
|
|
|
|
|
engine.rootContext()->setContextProperty("donateScreen", dialog);
|
|
|
|
|
engine.load("qrc:/qt/qml/org/hyprland/donate-screen/main.qml");
|
|
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
|
}
|