mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-28 22:17:48 -04:00
1 parent
dbf07ea644
commit
0102bf6d40
40 files changed
+1837
-896
No files matched your search
@@ -15,7 +15,7 @@ RowLayout {
|
||||
|
||||
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")
|
||||
text: (DgopService.hostname || "localhost") + " · " + (DgopService.distribution || "Linux") + " · " + I18n.tr("Uptime") + ": " + (DgopService.shortUptime ? DgopService.shortUptime.slice(2).trim() : "--") + " · " + I18n.tr("%1 procs", "short for processes, %1 is a count").arg(DgopService.processCount)
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
color: Theme.onSurfaceVariant
|
||||
elide: Text.ElideRight
|
||||
@@ -25,8 +25,8 @@ RowLayout {
|
||||
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"
|
||||
text: I18n.tr("GPU %1", "%1 is a temperature").arg(modelData.temperature.toFixed(0) + "°C")
|
||||
reserveText: I18n.tr("GPU %1", "%1 is a temperature").arg("100°C")
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
color: modelData.temperature > 85 ? Theme.error : Theme.onSurfaceVariant
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user