mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
151 lines
4.7 KiB
QML
151 lines
4.7 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
import Quickshell.Widgets
|
|
import "root:/"
|
|
import "root:/services/"
|
|
import "root:/modules/common/"
|
|
import "root:/modules/common/widgets/"
|
|
|
|
ContentPage {
|
|
forceWidth: true
|
|
|
|
ContentSection {
|
|
title: Translation.tr("Distro")
|
|
|
|
RowLayout {
|
|
Layout.alignment: Qt.AlignHCenter
|
|
spacing: 20
|
|
Layout.topMargin: 10
|
|
Layout.bottomMargin: 10
|
|
IconImage {
|
|
implicitSize: 80
|
|
source: Quickshell.iconPath(SystemInfo.logo)
|
|
}
|
|
ColumnLayout {
|
|
Layout.alignment: Qt.AlignVCenter
|
|
// spacing: 10
|
|
StyledText {
|
|
text: SystemInfo.distroName
|
|
font.pixelSize: Appearance.font.pixelSize.title
|
|
}
|
|
StyledText {
|
|
font.pixelSize: Appearance.font.pixelSize.normal
|
|
text: SystemInfo.homeUrl
|
|
textFormat: Text.MarkdownText
|
|
onLinkActivated: (link) => {
|
|
Qt.openUrlExternally(link)
|
|
}
|
|
PointingHandLinkHover {}
|
|
}
|
|
}
|
|
}
|
|
|
|
Flow {
|
|
Layout.fillWidth: true
|
|
spacing: 5
|
|
|
|
RippleButtonWithIcon {
|
|
materialIcon: "auto_stories"
|
|
mainText: Translation.tr("Documentation")
|
|
onClicked: {
|
|
Qt.openUrlExternally(SystemInfo.documentationUrl)
|
|
}
|
|
}
|
|
RippleButtonWithIcon {
|
|
materialIcon: "support"
|
|
mainText: Translation.tr("Help & Support")
|
|
onClicked: {
|
|
Qt.openUrlExternally(SystemInfo.supportUrl)
|
|
}
|
|
}
|
|
RippleButtonWithIcon {
|
|
materialIcon: "bug_report"
|
|
mainText: Translation.tr("Report a Bug")
|
|
onClicked: {
|
|
Qt.openUrlExternally(SystemInfo.bugReportUrl)
|
|
}
|
|
}
|
|
RippleButtonWithIcon {
|
|
materialIcon: "policy"
|
|
materialIconFill: false
|
|
mainText: Translation.tr("Privacy Policy")
|
|
onClicked: {
|
|
Qt.openUrlExternally(SystemInfo.privacyPolicyUrl)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
ContentSection {
|
|
title: Translation.tr("Dotfiles")
|
|
|
|
RowLayout {
|
|
Layout.alignment: Qt.AlignHCenter
|
|
spacing: 20
|
|
Layout.topMargin: 10
|
|
Layout.bottomMargin: 10
|
|
IconImage {
|
|
implicitSize: 80
|
|
source: Quickshell.iconPath("illogical-impulse")
|
|
}
|
|
ColumnLayout {
|
|
Layout.alignment: Qt.AlignVCenter
|
|
// spacing: 10
|
|
StyledText {
|
|
text: Translation.tr("illogical-impulse")
|
|
font.pixelSize: Appearance.font.pixelSize.title
|
|
}
|
|
StyledText {
|
|
text: "https://github.com/end-4/dots-hyprland"
|
|
font.pixelSize: Appearance.font.pixelSize.normal
|
|
textFormat: Text.MarkdownText
|
|
onLinkActivated: (link) => {
|
|
Qt.openUrlExternally(link)
|
|
}
|
|
PointingHandLinkHover {}
|
|
}
|
|
}
|
|
}
|
|
|
|
Flow {
|
|
Layout.fillWidth: true
|
|
spacing: 5
|
|
|
|
RippleButtonWithIcon {
|
|
materialIcon: "auto_stories"
|
|
mainText: Translation.tr("Documentation")
|
|
onClicked: {
|
|
Qt.openUrlExternally("https://end-4.github.io/dots-hyprland-wiki/en/ii-qs/02usage/")
|
|
}
|
|
}
|
|
RippleButtonWithIcon {
|
|
materialIcon: "adjust"
|
|
materialIconFill: false
|
|
mainText: Translation.tr("Issues")
|
|
onClicked: {
|
|
Qt.openUrlExternally("https://github.com/end-4/dots-hyprland/issues")
|
|
}
|
|
}
|
|
RippleButtonWithIcon {
|
|
materialIcon: "forum"
|
|
mainText: Translation.tr("Discussions")
|
|
onClicked: {
|
|
Qt.openUrlExternally("https://github.com/end-4/dots-hyprland/discussions")
|
|
}
|
|
}
|
|
RippleButtonWithIcon {
|
|
materialIcon: "favorite"
|
|
mainText: Translation.tr("Donate")
|
|
onClicked: {
|
|
Qt.openUrlExternally("https://github.com/sponsors/end-4")
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|