mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
bar: uniformising left section look (border, radius, colors) with workspace
This commit is contained in:
@@ -13,10 +13,13 @@ Row {
|
||||
Rectangle {
|
||||
// Let the Rectangle size itself based on its content (the Row)
|
||||
width: row.width + Style.marginMedium * scaling * 2
|
||||
height: row.height
|
||||
color: Color.mSurfaceVariant
|
||||
|
||||
radius: Style.radiusSmall * scaling
|
||||
height: Math.round(Style.barHeight * 0.75 * scaling)
|
||||
radius: Math.round(Style.radiusMedium * scaling)
|
||||
color: Color.mSurfaceVariant
|
||||
border.color: Color.mOutline
|
||||
border.width: Math.max(1, Math.round(Style.borderThin * scaling))
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
Item {
|
||||
@@ -93,73 +96,4 @@ Row {
|
||||
}
|
||||
}
|
||||
}
|
||||
} // Row {// id: layout
|
||||
// anchors.verticalCenter: parent.verticalCenter
|
||||
// spacing: Style.marginSmall * scaling
|
||||
// visible: Settings.data.bar.showSystemInfo
|
||||
|
||||
// // Ensure our width is an integer
|
||||
// width: Math.floor(cpuUsageLayout.width + cpuTempLayout.width + memoryUsageLayout.width + (2 * 10))
|
||||
|
||||
// Row {
|
||||
// id: cpuUsageLayout
|
||||
// spacing: Style.marginTiny * scaling
|
||||
|
||||
// NIcon {
|
||||
// id: cpuUsageIcon
|
||||
// text: "speed"
|
||||
// anchors.verticalCenter: parent.verticalCenter
|
||||
// }
|
||||
|
||||
// NText {
|
||||
// id: cpuUsageText
|
||||
// text: `${SystemStatService.cpuUsage}%`
|
||||
// font.pointSize: Style.fontSizeReduced * scaling
|
||||
// font.weight: Style.fontWeightBold
|
||||
// anchors.verticalCenter: parent.verticalCenter
|
||||
// verticalAlignment: Text.AlignVCenter
|
||||
// color: Color.mPrimary
|
||||
// }
|
||||
// }
|
||||
|
||||
// // CPU Temperature Component
|
||||
// Row {
|
||||
// id: cpuTempLayout
|
||||
// spacing: Style.marginTiny * scaling
|
||||
|
||||
// NIcon {
|
||||
// text: "thermometer"
|
||||
// anchors.verticalCenter: parent.verticalCenter
|
||||
// }
|
||||
|
||||
// NText {
|
||||
// text: `${SystemStatService.cpuTemp}°C`
|
||||
// font.pointSize: Style.fontSizeReduced * scaling
|
||||
// font.weight: Style.fontWeightBold
|
||||
// anchors.verticalCenter: parent.verticalCenter
|
||||
// verticalAlignment: Text.AlignVCenter
|
||||
// color: Color.mPrimary
|
||||
// }
|
||||
// }
|
||||
|
||||
// // Memory Usage Component
|
||||
// Row {
|
||||
// id: memoryUsageLayout
|
||||
// spacing: Style.marginTiny * scaling
|
||||
|
||||
// NIcon {
|
||||
// text: "memory"
|
||||
// anchors.verticalCenter: parent.verticalCenter
|
||||
// }
|
||||
|
||||
// NText {
|
||||
// text: `${SystemStatService.memoryUsageGb}G`
|
||||
// font.pointSize: Style.fontSizeReduced * scaling
|
||||
// font.weight: Style.fontWeightBold
|
||||
// anchors.verticalCenter: parent.verticalCenter
|
||||
// verticalAlignment: Text.AlignVCenter
|
||||
// color: Color.mPrimary
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user