forked from Shinonome/dots-hyprland
bar tooltips: adjust icons
This commit is contained in:
@@ -79,7 +79,7 @@ Item {
|
|||||||
spacing: 5
|
spacing: 5
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
MaterialSymbol { text: "timelapse"; color: Appearance.colors.colOnTooltip }
|
MaterialSymbol { text: "timelapse"; color: Appearance.colors.colOnTooltip }
|
||||||
StyledText { text: Translation.tr("Uptime:"); color: Appearance.colors.colOnTooltip }
|
StyledText { text: Translation.tr("System uptime:"); color: Appearance.colors.colOnTooltip }
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
horizontalAlignment: Text.AlignRight
|
horizontalAlignment: Text.AlignRight
|
||||||
@@ -88,7 +88,7 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Upcoming tasks row
|
// Tasks
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 2
|
spacing: 2
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -97,7 +97,7 @@ Item {
|
|||||||
spacing: 5
|
spacing: 5
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
MaterialSymbol { text: "checklist"; color: Appearance.colors.colOnTooltip }
|
MaterialSymbol { text: "checklist"; color: Appearance.colors.colOnTooltip }
|
||||||
StyledText { text: Translation.tr("Upcoming Tasks:"); color: Appearance.colors.colOnTooltip }
|
StyledText { text: Translation.tr("To Do:"); color: Appearance.colors.colOnTooltip }
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|||||||
@@ -27,19 +27,17 @@ Item {
|
|||||||
case "memory":
|
case "memory":
|
||||||
return [
|
return [
|
||||||
{ icon: "memory", label: Translation.tr("Memory Usage"), value: "" },
|
{ icon: "memory", label: Translation.tr("Memory Usage"), value: "" },
|
||||||
{ icon: "storage", label: Translation.tr("Used:"), value: formatKB(ResourceUsage.memoryUsed) },
|
{ icon: "clock_loader_60", label: Translation.tr("Used:"), value: formatKB(ResourceUsage.memoryUsed) },
|
||||||
{ icon: "check_circle", label: Translation.tr("Free:"), value: formatKB(ResourceUsage.memoryFree) },
|
{ icon: "check_circle", label: Translation.tr("Free:"), value: formatKB(ResourceUsage.memoryFree) },
|
||||||
{ icon: "dns", label: Translation.tr("Total:"), value: formatKB(ResourceUsage.memoryTotal) },
|
{ icon: "empty_dashboard", label: Translation.tr("Total:"), value: formatKB(ResourceUsage.memoryTotal) },
|
||||||
{ icon: "percent", label: Translation.tr("Usage:"), value: `${Math.round(ResourceUsage.memoryUsedPercentage * 100)}%` }
|
|
||||||
]
|
]
|
||||||
case "swap_horiz":
|
case "swap_horiz":
|
||||||
return ResourceUsage.swapTotal > 0 ?
|
return ResourceUsage.swapTotal > 0 ?
|
||||||
[
|
[
|
||||||
{ icon: "swap_horiz", label: Translation.tr("Swap Usage"), value: "" },
|
{ icon: "swap_horiz", label: Translation.tr("Swap Usage"), value: "" },
|
||||||
{ icon: "storage", label: Translation.tr("Used:"), value: formatKB(ResourceUsage.swapUsed) },
|
{ icon: "clock_loader_60", label: Translation.tr("Used:"), value: formatKB(ResourceUsage.swapUsed) },
|
||||||
{ icon: "check_circle", label: Translation.tr("Free:"), value: formatKB(ResourceUsage.swapFree) },
|
{ icon: "check_circle", label: Translation.tr("Free:"), value: formatKB(ResourceUsage.swapFree) },
|
||||||
{ icon: "dns", label: Translation.tr("Total:"), value: formatKB(ResourceUsage.swapTotal) },
|
{ icon: "empty_dashboard", label: Translation.tr("Total:"), value: formatKB(ResourceUsage.swapTotal) },
|
||||||
{ icon: "percent", label: Translation.tr("Usage:"), value: `${Math.round(ResourceUsage.swapUsedPercentage * 100)}%` }
|
|
||||||
] :
|
] :
|
||||||
[
|
[
|
||||||
{ icon: "swap_horiz", label: Translation.tr("Swap:"), value: Translation.tr("Not configured") }
|
{ icon: "swap_horiz", label: Translation.tr("Swap:"), value: Translation.tr("Not configured") }
|
||||||
@@ -47,10 +45,10 @@ Item {
|
|||||||
case "settings_slow_motion":
|
case "settings_slow_motion":
|
||||||
return [
|
return [
|
||||||
{ icon: "settings_slow_motion", label: Translation.tr("CPU Usage"), value: "" },
|
{ icon: "settings_slow_motion", label: Translation.tr("CPU Usage"), value: "" },
|
||||||
{ icon: "bolt", label: Translation.tr("Current:"), value: `${Math.round(ResourceUsage.cpuUsage * 100)}%` },
|
{ icon: "bolt", label: Translation.tr("Load:"), value: (ResourceUsage.cpuUsage > 0.8 ?
|
||||||
{ icon: "speed", label: Translation.tr("Load:"), value: ResourceUsage.cpuUsage > 0.8 ?
|
|
||||||
Translation.tr("High") :
|
Translation.tr("High") :
|
||||||
ResourceUsage.cpuUsage > 0.5 ? Translation.tr("Medium") : Translation.tr("Low")
|
ResourceUsage.cpuUsage > 0.4 ? Translation.tr("Medium") : Translation.tr("Low"))
|
||||||
|
+ ` (${Math.round(ResourceUsage.cpuUsage * 100)}%)`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
default:
|
default:
|
||||||
@@ -130,7 +128,7 @@ Item {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
fill: 1
|
fill: 1
|
||||||
text: iconName
|
text: iconName
|
||||||
iconSize: Appearance.font.pixelSize.normal
|
iconSize: Appearance.font.pixelSize.large
|
||||||
color: Appearance.m3colors.m3onSecondaryContainer
|
color: Appearance.m3colors.m3onSecondaryContainer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user