import QtQuick import QtQuick.Layouts import Quickshell.Io import ZShell import qs.Modules.Settings.Common import ZShell.Config import qs.Helpers import qs.Components import qs.Services PageBase { id: root property string cliVersion readonly property int pluginCount: 0 property string quickshellVersion title: qsTr("About") ColumnLayout { anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top spacing: Tokens.spacing.extraSmall / 2 width: root.cappedWidth Process { command: ["quickshell", "--version"] running: true stdout: StdioCollector { onStreamFinished: root.quickshellVersion = text.trim().split(" ")[1] ?? "" } } ConnectedRect { Layout.fillWidth: true first: true implicitHeight: hero.implicitHeight + Tokens.padding.extraLarge * 2 last: true ColumnLayout { id: hero anchors.centerIn: parent spacing: Tokens.spacing.small width: parent.width - Tokens.padding.largeIncreased * 2 Logo { Layout.alignment: Qt.AlignHCenter Layout.preferredHeight: implicitHeight Layout.preferredWidth: implicitWidth implicitHeight: designHeight * 2 implicitWidth: designWidth * 2 } CustomText { Layout.alignment: Qt.AlignHCenter Layout.topMargin: Tokens.spacing.small font.pointSize: Tokens.font.size.large text: "ZShell" } CustomText { Layout.alignment: Qt.AlignHCenter color: Colors.palette.m3onSurfaceVariant font.pointSize: Tokens.font.size.normal text: ZUtils.version ? `v${ZUtils.version}` : "…" } } } // System SectionHeader { text: qsTr("System") } InfoRow { first: true label: qsTr("Hostname") value: SystemInfo.hostname } InfoRow { label: qsTr("Device") value: SystemInfo.device } InfoRow { label: qsTr("Distro") value: SystemInfo.osPrettyName || SystemInfo.osName } InfoRow { label: qsTr("Kernel") value: SystemInfo.kernel } InfoRow { label: qsTr("Firmware") last: true value: SystemInfo.firmware } // Software SectionHeader { text: qsTr("Software") } InfoRow { first: true label: qsTr("Shell") value: ZUtils.version || "…" } InfoRow { label: qsTr("Quickshell") value: root.quickshellVersion || "…" } InfoRow { label: qsTr("Qt") last: true value: ZUtils.qtVersion || "…" } } }