1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

layout adjustments

This commit is contained in:
bbedward
2025-09-10 09:23:14 -04:00
parent 9438868706
commit fb01d1af4b
6 changed files with 86 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ Singleton {
property string fullName: ""
property string profilePicture: ""
property string uptime: ""
property string shortUptime: ""
property string hostname: ""
property bool profileAvailable: false
@@ -95,6 +96,19 @@ Singleton {
} else {
root.uptime = `up ${seconds} seconds`
}
// Create short uptime format
let shortUptime = "up"
if (days > 0) {
shortUptime += ` ${days}d`
}
if (hours > 0) {
shortUptime += ` ${hours}h`
}
if (minutes > 0) {
shortUptime += ` ${minutes}m`
}
root.shortUptime = shortUptime
}
}
}