40 lines
No EOL
964 B
QML
40 lines
No EOL
964 B
QML
import "root:/widgets"
|
|
import "root:/services"
|
|
import "root:/utils"
|
|
import "root:/config"
|
|
import Quickshell
|
|
import QtQuick
|
|
|
|
Item {
|
|
id: root
|
|
|
|
required property int workspaceId
|
|
|
|
implicitWidth: child.implicitWidth
|
|
implicitHeight: child.implicitHeight
|
|
|
|
// Ensure the popout doesn't affect the bar's size
|
|
visible: width > 0 && height > 0
|
|
clip: true
|
|
|
|
StyledRect {
|
|
id: child
|
|
|
|
anchors.centerIn: parent
|
|
color: Colours.palette.m3surfaceContainer
|
|
radius: Appearance.rounding.normal
|
|
|
|
StyledText {
|
|
anchors.centerIn: parent
|
|
text: `Workspace ${root.workspaceId}`
|
|
font.pointSize: Appearance.font.size.normal
|
|
color: Colours.palette.m3onSurface
|
|
}
|
|
}
|
|
|
|
component Anim: NumberAnimation {
|
|
duration: Appearance.anim.durations.normal
|
|
easing.type: Easing.BezierSpline
|
|
easing.bezierCurve: Appearance.anim.curves.emphasized
|
|
}
|
|
} |