nosignal-shell/modules/bar/components/workspaces/Workspace.qml
2 * r + 2 * t 82139e9c2d refactor: workspaces use inner bar height
Also simplify boxpadding
2025-04-29 12:07:44 +10:00

18 lines
691 B
QML

import "root:/widgets"
import "root:/services"
import "root:/config"
import QtQuick.Layouts
StyledText {
required property int index
required property BoxLayout layout
required property var occupied
readonly property bool isWorkspace: true // Flag for finding workspace children
text: index + 1
color: BarConfig.workspaces.occupiedBg || occupied[index + 1] ? Appearance.colours.text : Appearance.colours.subtext0
horizontalAlignment: StyledText.AlignHCenter
Layout.preferredWidth: layout.homogenous && !layout.vertical ? BarConfig.sizes.innerHeight : -1
Layout.preferredHeight: layout.homogenous && layout.vertical ? BarConfig.sizes.innerHeight : -1
}