blob: 4f53e738bd2c61784f7e1e85d6a45c3e0674da63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import "root:/widgets"
import "root:/services"
import "root:/config"
import QtQuick.Layouts
Label {
required property int index
required property BoxLayout layout
required property var occupied
readonly property bool isWorkspace: true
text: index + 1
color: BarConfig.workspaces.occupiedBg || occupied[index + 1] ? Appearance.colours.text : Appearance.colours.subtext0
horizontalAlignment: Label.AlignHCenter
Layout.preferredWidth: layout.homogenous && !layout.vertical ? layout.height : -1
Layout.preferredHeight: layout.homogenous && layout.vertical ? layout.width : -1
}
|