Bar: SysMon wrapped in a rounded rectangle

This commit is contained in:
quadbyte 2025-08-17 21:16:10 -04:00
parent a3f830c3fc
commit 9661712829
4 changed files with 153 additions and 65 deletions

View file

@ -38,12 +38,8 @@ Row {
}
}
function getFocusedWindow() {
return CompositorService.getFocusedWindow()
}
function getTitle() {
const focusedWindow = getFocusedWindow()
const focusedWindow = CompositorService.getFocusedWindow()
return focusedWindow ? (focusedWindow.title || focusedWindow.appId || "") : ""
}
@ -58,7 +54,7 @@ Row {
Rectangle {
// Let the Rectangle size itself based on its content (the Row)
width: row.width + Style.marginMedium * scaling * 2
height: row.height + Style.marginSmall * scaling
height: row.height
color: Color.mSurfaceVariant
radius: Style.radiusSmall * scaling
anchors.verticalCenter: parent.verticalCenter