1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-30 00:12:50 -05:00

settings: about About page

This commit is contained in:
bbedward
2025-10-23 16:52:37 -04:00
parent 061aaeb933
commit 57a921425c

View File

@@ -278,7 +278,6 @@ Item {
} }
} }
// Technical Details
StyledRect { StyledRect {
width: parent.width width: parent.width
height: techSection.implicitHeight + Theme.spacingL * 2 height: techSection.implicitHeight + Theme.spacingL * 2
@@ -307,7 +306,7 @@ Item {
} }
StyledText { StyledText {
text: I18n.tr("Technical Details") text: I18n.tr("Resources")
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
@@ -322,14 +321,14 @@ Item {
rowSpacing: Theme.spacingS rowSpacing: Theme.spacingS
StyledText { StyledText {
text: I18n.tr("Framework:") text: I18n.tr("Website:")
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
} }
StyledText { StyledText {
text: `<a href="https://quickshell.org" style="text-decoration:none; color:${Theme.primary};">Quickshell</a>` text: `<a href="https://danklinux.com" style="text-decoration:none; color:${Theme.primary};">danklinux.com</a>`
linkColor: Theme.primary linkColor: Theme.primary
textFormat: Text.RichText textFormat: Text.RichText
onLinkActivated: url => Qt.openUrlExternally(url) onLinkActivated: url => Qt.openUrlExternally(url)
@@ -345,36 +344,19 @@ Item {
} }
StyledText { StyledText {
text: I18n.tr("Language:") text: I18n.tr("Plugins:")
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
} }
StyledText { StyledText {
text: I18n.tr("QML, JavaScript, Go") text: `<a href="https://plugins.danklinux.com" style="text-decoration:none; color:${Theme.primary};">plugins.danklinux.com</a>`
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
}
StyledText {
text: I18n.tr("Compositor:")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
}
Row {
spacing: 4
StyledText {
text: `<a href="https://github.com/YaLTeR/niri" style="text-decoration:none; color:${Theme.primary};">niri</a>`
font.pixelSize: Theme.fontSizeMedium
linkColor: Theme.primary linkColor: Theme.primary
textFormat: Text.RichText textFormat: Text.RichText
color: Theme.surfaceVariantText
onLinkActivated: url => Qt.openUrlExternally(url) onLinkActivated: url => Qt.openUrlExternally(url)
anchors.verticalCenter: parent.verticalCenter font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
@@ -384,31 +366,6 @@ Item {
} }
} }
StyledText {
text: "&"
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
anchors.verticalCenter: parent.verticalCenter
}
StyledText {
text: `<a href="https://github.com/hyprwm/Hyprland" style="text-decoration:none; color:${Theme.primary};">hyprland</a>`
font.pixelSize: Theme.fontSizeMedium
linkColor: Theme.primary
textFormat: Text.RichText
color: Theme.surfaceVariantText
onLinkActivated: url => Qt.openUrlExternally(url)
anchors.verticalCenter: parent.verticalCenter
MouseArea {
anchors.fill: parent
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
acceptedButtons: Qt.NoButton
propagateComposedEvents: true
}
}
}
StyledText { StyledText {
text: I18n.tr("Github:") text: I18n.tr("Github:")
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
@@ -478,34 +435,61 @@ Item {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
} }
StyledText {
text: I18n.tr("Dank Suite:")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
} }
}
}
// Support Section
StyledRect {
width: parent.width
height: supportSection.implicitHeight + Theme.spacingL * 2
radius: Theme.cornerRadius
color: Theme.surfaceContainerHigh
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g,
Theme.outline.b, 0.2)
border.width: 0
Row { Row {
spacing: 4 id: supportSection
StyledText { anchors.fill: parent
text: `<a href="https://danklinux.com" style="text-decoration:none; color:${Theme.primary};">danklinux.com</a>` anchors.margins: Theme.spacingL
font.pixelSize: Theme.fontSizeMedium spacing: Theme.spacingM
color: Theme.surfaceVariantText
linkColor: Theme.primary Row {
textFormat: Text.RichText spacing: Theme.spacingM
onLinkActivated: url => Qt.openUrlExternally(url)
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
MouseArea { DankIcon {
anchors.fill: parent name: "volunteer_activism"
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor size: Theme.iconSize
acceptedButtons: Qt.NoButton color: Theme.primary
propagateComposedEvents: true anchors.verticalCenter: parent.verticalCenter
}
StyledText {
text: I18n.tr("Support Development")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
} }
} }
Item {
width: parent.width - parent.spacing - kofiButton.width - supportSection.children[0].width
height: 1
} }
DankButton {
id: kofiButton
text: I18n.tr("Donate on Ko-fi")
iconName: "favorite"
iconSize: 20
backgroundColor: Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08)
textColor: Theme.primary
anchors.verticalCenter: parent.verticalCenter
onClicked: Qt.openUrlExternally("https://ko-fi.com/danklinux")
} }
} }
} }