forked from Shinonome/dots-hyprland
hefty: bar: resources indicator: add more stats
This commit is contained in:
@@ -33,10 +33,6 @@ AbstractCombinedProgressBar {
|
||||
required property var modelData
|
||||
|
||||
visible: !root.isNegligibleSegment(modelData)
|
||||
anchors {
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
}
|
||||
property bool atStart: index == 0
|
||||
property bool atEnd: index == root.visualSegments.length - 1
|
||||
property real displaySegStart: { // swallow previous segments if they're "negligible"
|
||||
@@ -46,6 +42,11 @@ AbstractCombinedProgressBar {
|
||||
return root.visualSegments[i][0]
|
||||
}
|
||||
|
||||
anchors {
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
}
|
||||
|
||||
x: {
|
||||
var result = root.availableWidth * displaySegStart;
|
||||
if (!atStart) result += root.valueBarGap / 2;
|
||||
|
||||
Reference in New Issue
Block a user