mirror of
https://github.com/hyprwm/hyprsysteminfo.git
synced 2024-11-23 12:35:58 +01:00
parent
0fa58f189b
commit
8b271e2ba3
1 changed files with 12 additions and 0 deletions
12
src/main.qml
12
src/main.qml
|
@ -36,6 +36,11 @@ ApplicationWindow {
|
|||
Layout.rightMargin: fontMetrics.height * 8
|
||||
}
|
||||
|
||||
SystemPalette {
|
||||
id: system
|
||||
colorGroup: SystemPalette.Active
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
id: mainLayout
|
||||
spacing: fontMetrics.height
|
||||
|
@ -77,16 +82,19 @@ ApplicationWindow {
|
|||
Layout.alignment: Qt.AlignVCenter
|
||||
|
||||
Label {
|
||||
color: system.windowText
|
||||
text: SystemInfo.systemName
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
}
|
||||
|
||||
Label {
|
||||
color: system.windowText
|
||||
text: SystemInfo.systemUrl
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
}
|
||||
|
||||
Label {
|
||||
color: system.windowText
|
||||
text: SystemInfo.systemKernel
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
}
|
||||
|
@ -119,16 +127,19 @@ ApplicationWindow {
|
|||
Layout.alignment: Qt.AlignVCenter
|
||||
|
||||
Label {
|
||||
color: system.windowText
|
||||
text: "Hyprland"
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
}
|
||||
|
||||
Label {
|
||||
color: system.windowText
|
||||
text: SystemInfo.hyprlandVersion
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
}
|
||||
|
||||
Label {
|
||||
color: system.windowText
|
||||
visible: SystemInfo.hyprlandVersion != text
|
||||
text: SystemInfo.hyprlandVersionLong
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
@ -147,6 +158,7 @@ ApplicationWindow {
|
|||
Layout.rightMargin: fontMetrics.height * 4
|
||||
|
||||
component DetailsLabel: Label {
|
||||
color: system.windowText
|
||||
Layout.fillWidth: true
|
||||
elide: Text.ElideRight
|
||||
wrapMode: Text.NoWrap
|
||||
|
|
Loading…
Reference in a new issue