wip
This commit is contained in:
parent
12213b0008
commit
a1efbcec83
6 changed files with 247 additions and 0 deletions
40
modules/bar/popouts/WorkspaceWindows.qml
Normal file
40
modules/bar/popouts/WorkspaceWindows.qml
Normal file
|
@ -0,0 +1,40 @@
|
|||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue