From e0514a390b590e6c1ec1a86497eca63d9d58d3dd Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 29 Apr 2025 19:31:22 +0100 Subject: [PATCH] update-screen: add icon for support button --- utils/update-screen/CMakeLists.txt | 6 ++++++ utils/update-screen/assets/heart.svg | 4 ++++ utils/update-screen/main.qml | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 utils/update-screen/assets/heart.svg diff --git a/utils/update-screen/CMakeLists.txt b/utils/update-screen/CMakeLists.txt index 17d2096..a70edca 100644 --- a/utils/update-screen/CMakeLists.txt +++ b/utils/update-screen/CMakeLists.txt @@ -25,6 +25,12 @@ qt_add_qml_module(hyprland-update-screen QML_FILES main.qml dialogMain.qml ) +qt_add_resources(hyprland-update-screen "assets" + PREFIX "/" + FILES + assets/heart.svg +) + target_link_libraries(hyprland-update-screen PRIVATE Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils ) diff --git a/utils/update-screen/assets/heart.svg b/utils/update-screen/assets/heart.svg new file mode 100644 index 0000000..6e9de17 --- /dev/null +++ b/utils/update-screen/assets/heart.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/utils/update-screen/main.qml b/utils/update-screen/main.qml index bc97e9a..d794438 100644 --- a/utils/update-screen/main.qml +++ b/utils/update-screen/main.qml @@ -80,6 +80,10 @@ ApplicationWindow { Layout.alignment: Qt.AlignRight Button { + icon.color: "transparent" + icon.source: "qrc:/assets/heart.svg" + icon.height: 18 + icon.width: 18 text: "Support the project" onClicked: (e) => { updateScreen.onButtonPress("donate");