Compare commits

...

3 commits
v0.1.5 ... main

Author SHA1 Message Date
56d993aced
README: update status
Some checks failed
Build / nix (push) Has been cancelled
2025-11-06 20:45:12 +00:00
Blaadick
629b15c19f
core: Custom QT_QUICK_CONTROLS_STYLE fix (#20)
Some checks failed
Build / nix (push) Has been cancelled
2025-09-28 19:23:48 +02:00
VuaTech
5ffdfc13ed
cmake: Added find_package entry for WaylandClientPrivate (#19)
Some checks failed
Build / nix (push) Has been cancelled
2025-09-12 18:32:35 +02:00
8 changed files with 32 additions and 29 deletions

1
.gitignore vendored
View file

@ -34,6 +34,7 @@
build/
.cache/
.vscode/
.idea/
# nix
result*

View file

@ -1,5 +1,8 @@
# Hyprland QT utils
> [!IMPORTANT]
> This repo has been superseded by ![hyprland-guiutils](https://github.com/hyprwm/hyprland-guiutils)
This repo houses some qt/qml utilities that might be used by various hypr* apps.
## Dependencies

View file

@ -5,7 +5,7 @@ project(hyprland-dialog VERSION ${VER} LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient)
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient WaylandClientPrivate)
find_package(PkgConfig REQUIRED)
pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils)
@ -24,7 +24,7 @@ qt_add_qml_module(hyprland-dialog
)
target_link_libraries(hyprland-dialog PRIVATE
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
Qt6::Quick Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
)

View file

@ -1,11 +1,11 @@
#include "Dialog.hpp"
#include <hyprutils/string/VarList.hpp>
#include <print>
#include <qapplication.h>
#include <qqmlapplicationengine.h>
#include <qquickstyle.h>
#include <qtenvironmentvariables.h>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickStyle>
#include <QtEnvironmentVariables>
#include <print>
#include <hyprutils/string/VarList.hpp>
using namespace Hyprutils::String;
@ -75,7 +75,7 @@ int main(int argc, char* argv[]) {
return 1;
}
QApplication app(argc, argv);
QGuiApplication app(argc, argv);
app.setApplicationName(appTitle.isEmpty() ? dialog->title : appTitle);
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE"))

View file

@ -5,7 +5,7 @@ project(hyprland-donate-screen VERSION ${VER} LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient)
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient WaylandClientPrivate)
find_package(PkgConfig REQUIRED)
pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils)
@ -30,7 +30,7 @@ qt_add_resources(hyprland-donate-screen "assets"
)
target_link_libraries(hyprland-donate-screen PRIVATE
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
Qt6::Quick Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
)

View file

@ -1,11 +1,10 @@
#include "DonateScreen.hpp"
#include <hyprutils/string/VarList.hpp>
#include <print>
#include <qapplication.h>
#include <qqmlapplicationengine.h>
#include <qquickstyle.h>
#include <qtenvironmentvariables.h>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickStyle>
#include <QtEnvironmentVariables>
#include <hyprutils/string/VarList.hpp>
using namespace Hyprutils::String;
@ -15,7 +14,7 @@ int main(int argc, char* argv[]) {
auto dialog = new CDonateScreen();
QApplication app(argc, argv);
QGuiApplication app(argc, argv);
app.setApplicationName("Support Hyprland");
app.setApplicationDisplayName("Support Hyprland");

View file

@ -5,7 +5,7 @@ project(hyprland-update-screen VERSION ${VER} LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient)
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient WaylandClientPrivate)
find_package(PkgConfig REQUIRED)
pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils)
@ -32,7 +32,7 @@ qt_add_resources(hyprland-update-screen "assets"
)
target_link_libraries(hyprland-update-screen PRIVATE
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
Qt6::Quick Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
)

View file

@ -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 "UpdateScreen.hpp"
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickStyle>
#include <QtEnvironmentVariables>
#include <print>
#include <hyprutils/string/VarList.hpp>
using namespace Hyprutils::String;
@ -40,7 +40,7 @@ int main(int argc, char* argv[]) {
return 1;
}
QApplication app(argc, argv);
QGuiApplication app(argc, argv);
app.setApplicationName("Hyprland Updated!");
app.setApplicationDisplayName("Hyprland Updated");