mirror of
https://github.com/hyprwm/hyprland-qtutils.git
synced 2025-05-12 13:20:41 +01:00
update-screen: add icon for support button
This commit is contained in:
parent
5917536fb5
commit
e0514a390b
3 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
)
|
||||
|
|
4
utils/update-screen/assets/heart.svg
Normal file
4
utils/update-screen/assets/heart.svg
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M19.5355 5.46448C21.4881 7.4171 21.4881 10.5829 19.5355 12.5355L12.7071 19.364C12.3166 19.7545 11.6834 19.7545 11.2929 19.364L4.46447 12.5355C2.51184 10.5829 2.51184 7.4171 4.46447 5.46448C6.0168 3.91215 7.89056 3.43683 9.78125 4.35939C10.5317 4.72556 11.5156 5.46448 12 6.4297C12.4844 5.46448 13.4683 4.72556 14.2187 4.35939C16.1094 3.43683 17.9832 3.91215 19.5355 5.46448Z" stroke="#f309e8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
After Width: | Height: | Size: 698 B |
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue