AboutTab: add small kofi link

This commit is contained in:
lysec
2025-10-13 15:29:43 +02:00
parent d6b7288009
commit 158eaf51c2
8 changed files with 84 additions and 11 deletions

4
.github/funding.yml vendored Normal file
View File

@@ -0,0 +1,4 @@
github: noctalia-dev
ko_fi: lysec
custom:
- "https://ko-fi.com/lysec"

View File

@@ -684,7 +684,8 @@
"description": "Ein Dankeschön an unseren {count} <b>großartigen</b> Mitwirkenden!",
"description_plural": "Ein Dankeschön an unsere {count} <b>großartigen</b> Mitwirkenden!"
}
}
},
"support": "Unterstützen Sie uns"
},
"hooks": {
"title": "Hooks",
@@ -1576,6 +1577,9 @@
"enabled": "Aktiviert",
"disabled": "Deaktiviert"
},
"kofi": {
"opened": "Ko-fi-Seite in Ihrem Browser geöffnet"
},
"do-not-disturb": {
"enabled": "'Nicht stören' aktiviert",
"disabled": "'Nicht stören' deaktiviert",

View File

@@ -685,7 +685,8 @@
"description": "Shout-out to our {count} <b>awesome</b> contributor!",
"description_plural": "Shout-out to our {count} <b>awesome</b> contributors!"
}
}
},
"support": "Support us"
},
"hooks": {
"title": "Hooks",
@@ -1549,6 +1550,9 @@
"enabled": "Enabled",
"disabled": "Disabled"
},
"kofi": {
"opened": "Ko-fi page opened in your browser"
},
"do-not-disturb": {
"enabled": "'Do not disturb' enabled",
"disabled": "'Do not disturb' disabled",

View File

@@ -684,7 +684,8 @@
"description": "¡Un saludo a nuestro <b>increíble</b> colaborador número {count}!",
"description_plural": "¡Un saludo a nuestros {count} <b>increíbles</b> colaboradores!"
}
}
},
"support": "Apóyanos"
},
"hooks": {
"title": "Hooks",
@@ -1548,6 +1549,9 @@
"enabled": "Activado",
"disabled": "Desactivado"
},
"kofi": {
"opened": "Página de Ko-fi abierta en tu navegador"
},
"do-not-disturb": {
"enabled": "'No molestar' activado",
"disabled": "'No molestar' desactivado",

View File

@@ -684,7 +684,8 @@
"description": "Un grand merci à notre {count} <b>super</b> contributeur !",
"description_plural": "Un grand merci à nos {count} <b>super</b> contributeurs !"
}
}
},
"support": "Soutenez-nous"
},
"hooks": {
"title": "Hooks",
@@ -1548,6 +1549,9 @@
"enabled": "Activé",
"disabled": "Désactivé"
},
"kofi": {
"opened": "Page Ko-fi ouverte dans votre navigateur"
},
"do-not-disturb": {
"enabled": "'Ne pas déranger' activé",
"disabled": "'Ne pas déranger' désactivé",

View File

@@ -646,7 +646,8 @@
"description": "Agradecimentos ao nosso <b>incrível</b> colaborador!",
"description_plural": "Agradecimentos aos nossos {count} <b>incríveis</b> colaboradores!"
}
}
},
"support": "Apoie-nos"
},
"hooks": {
"title": "Hooks",
@@ -1548,6 +1549,9 @@
"enabled": "Ativado",
"disabled": "Desativado"
},
"kofi": {
"opened": "Página do Ko-fi aberta no seu navegador"
},
"do-not-disturb": {
"enabled": "'Não perturbe' ativado",
"disabled": "'Não perturbe' desativado",

View File

@@ -684,7 +684,8 @@
"description": "向我们 {count} 位<b>超棒的</b>贡献者致敬!",
"description_plural": "向我们 {count} 位<b>超棒的</b>贡献者致敬!"
}
}
},
"support": "支持我们"
},
"hooks": {
"title": "钩子",
@@ -1548,6 +1549,9 @@
"enabled": "已启用",
"disabled": "已禁用"
},
"kofi": {
"opened": "Ko-fi页面已在您的浏览器中打开"
},
"do-not-disturb": {
"enabled": "'勿扰模式'已启用",
"disabled": "'勿扰模式'已禁用",

View File

@@ -83,9 +83,58 @@ ColumnLayout {
}
}
// Ko-fi support button
Rectangle {
Layout.alignment: Qt.AlignHCenter
Layout.topMargin: Style.marginM
Layout.bottomMargin: Style.marginM
width: supportRow.implicitWidth + Style.marginXL
height: supportRow.implicitHeight + Style.marginM
radius: Style.radiusS
color: supportArea.containsMouse ? Qt.alpha(Color.mOnSurface, 0.05) : Color.transparent
border.width: 0
Behavior on color {
ColorAnimation {
duration: Style.animationFast
}
}
RowLayout {
id: supportRow
anchors.centerIn: parent
spacing: Style.marginS
NText {
text: I18n.tr("settings.about.support")
pointSize: Style.fontSizeXS
color: Color.mOnSurface
opacity: supportArea.containsMouse ? Style.opacityFull : Style.opacityMedium
}
NIcon {
icon: supportArea.containsMouse ? "heart-filled" : "heart"
pointSize: 14
color: Color.mOnSurface
opacity: supportArea.containsMouse ? Style.opacityFull : Style.opacityMedium
}
}
MouseArea {
id: supportArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
Quickshell.execDetached(["xdg-open", "https://ko-fi.com/lysec"])
ToastService.showNotice(I18n.tr("settings.about.support"), I18n.tr("toast.kofi.opened"), 3000)
}
}
}
NDivider {
Layout.fillWidth: true
Layout.topMargin: Style.marginXL
Layout.topMargin: Style.marginXXXL
Layout.bottomMargin: Style.marginXL
}
@@ -189,8 +238,4 @@ ColumnLayout {
}
}
}
Item {
Layout.fillHeight: true
}
}