mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-15 07:44:01 -04:00
deprecation notice to plugin compatibility shims - When qml-common became a thing, we left qs.Widgets shims in place for plugin compatibility - It's annoying to need to maintain them when qml-common has any change, add a warning so we can safely deprecate them in the future - One shot rename the common stuff to D to make it shorter and nicer to write
35 lines
1.2 KiB
QML
35 lines
1.2 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.Common
|
|
import qs.Services
|
|
import qs.DCommon.Widgets
|
|
|
|
RowLayout {
|
|
spacing: Theme.spacingS
|
|
|
|
SystemLogo {
|
|
Layout.preferredWidth: Theme.iconSize
|
|
Layout.preferredHeight: Theme.iconSize
|
|
colorOverride: Theme.primary
|
|
}
|
|
|
|
StyledText {
|
|
Layout.fillWidth: true
|
|
text: (DgopService.hostname || "localhost") + " · " + (DgopService.distribution || "Linux") + " · " + I18n.tr("Uptime") + ": " + (DgopService.shortUptime ? DgopService.shortUptime.slice(2).trim() : "--") + " · " + DgopService.processCount + " " + I18n.tr("procs", "short for processes")
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
color: Theme.onSurfaceVariant
|
|
elide: Text.ElideRight
|
|
}
|
|
|
|
Repeater {
|
|
model: DgopService.availableGpus.filter(gpu => (SessionData.enabledGpuPciIds || []).includes(gpu.pciId) && gpu.temperature > 0)
|
|
NumericText {
|
|
required property var modelData
|
|
text: I18n.tr("GPU") + " " + modelData.temperature.toFixed(0) + "°C"
|
|
reserveText: I18n.tr("GPU") + " 100°C"
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
color: modelData.temperature > 85 ? Theme.error : Theme.onSurfaceVariant
|
|
}
|
|
}
|
|
}
|