mirror of
https://github.com/hyprwm/hyprland-qtutils.git
synced 2025-05-12 21:30:37 +01:00
donate-screen: add heart icon
This commit is contained in:
parent
3504a293c8
commit
5917536fb5
3 changed files with 14 additions and 0 deletions
|
@ -23,6 +23,12 @@ qt_add_qml_module(hyprland-donate-screen
|
||||||
QML_FILES main.qml
|
QML_FILES main.qml
|
||||||
)
|
)
|
||||||
|
|
||||||
|
qt_add_resources(hyprland-donate-screen "assets"
|
||||||
|
PREFIX "/"
|
||||||
|
FILES
|
||||||
|
assets/heart.svg
|
||||||
|
)
|
||||||
|
|
||||||
target_link_libraries(hyprland-donate-screen PRIVATE
|
target_link_libraries(hyprland-donate-screen PRIVATE
|
||||||
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
|
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
|
||||||
)
|
)
|
||||||
|
|
4
utils/donate-screen/assets/heart.svg
Normal file
4
utils/donate-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 |
|
@ -81,6 +81,10 @@ ApplicationWindow {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
|
icon.color: "transparent"
|
||||||
|
icon.source: "qrc:/assets/heart.svg"
|
||||||
|
icon.height: 18
|
||||||
|
icon.width: 18
|
||||||
text: "Donate"
|
text: "Donate"
|
||||||
onClicked: (e) => {
|
onClicked: (e) => {
|
||||||
donateScreen.onButtonPress("donate");
|
donateScreen.onButtonPress("donate");
|
||||||
|
|
Loading…
Reference in a new issue