jay, many thing

This commit is contained in:
atagen 2026-03-09 13:58:20 +11:00
parent d4d04d7d6d
commit 6e62eccfba
32 changed files with 5580 additions and 333 deletions

View file

@ -88,155 +88,161 @@ ShellRoot {
}
// centre main
Variants {
model: Quickshell.screens.filter(screen => screen.name != "DP-1")
delegate: PanelWindow {
id: windowTitle
property var modelData
anchors {
top: true
}
// Variants {
// model: Quickshell.screens.filter(screen => screen.name != "DP-1")
// delegate: PanelWindow {
// id: windowTitle
// property var modelData
// anchors {
// top: true
// left: true
// right: true
// }
// margins {
// left: 300
// right: 300
// }
TextMetrics {
id: textInfo
font {
family: "MS W98 UI"
pointSize: 12
}
elideWidth: 550
elide: Qt.ElideMiddle
text: Title.currentWindow
}
// TextMetrics {
// id: textInfo
// font {
// family: "MS W98 UI"
// pointSize: 12
// }
// elideWidth: 550
// elide: Qt.ElideMiddle
// text: Title.currentWindow
// }
implicitHeight: textInfo.height + 6
implicitWidth: (textInfo.width > textInfo.elideWidth ? textInfo.elideWidth : textInfo.width) + 24
Behavior on implicitWidth {
NumberAnimation {
duration: 150
easing.type: Easing.InOutQuad
}
}
color: "transparent"
// implicitHeight: textInfo.height + 6
// implicitWidth: (textInfo.width > textInfo.elideWidth ? textInfo.elideWidth : textInfo.width) + 24
// Behavior on implicitWidth {
// NumberAnimation {
// duration: 150
// easing.type: Easing.InOutQuad
// }
// }
// color: "transparent"
Rectangle {
anchors {
fill: parent
}
color: Colours.c.black
bottomLeftRadius: 10
bottomRightRadius: 10
// Rectangle {
// anchors {
// fill: parent
// }
// color: Colours.c.black
// bottomLeftRadius: 10
// bottomRightRadius: 10
Rectangle {
anchors {
fill: parent
leftMargin: 12
rightMargin: 12
topMargin: 4
}
color: "transparent"
Text {
font {
family: "MS W98 UI"
pointSize: 12
}
color: Colours.c.yellow_b
text: textInfo.elidedText
}
}
}
// Rectangle {
// anchors {
// fill: parent
// leftMargin: 12
// rightMargin: 12
// topMargin: 4
// }
// color: "transparent"
// Text {
// font {
// family: "MS W98 UI"
// pointSize: 12
// }
// color: Colours.c.yellow_b
// text: textInfo.elidedText
// }
// }
// }
exclusionMode: ExclusionMode.Ignore
WlrLayershell.layer: WlrLayer.Top
screen: modelData
}
}
// exclusionMode: ExclusionMode.Ignore
// WlrLayershell.layer: WlrLayer.Top
// screen: modelData
// }
// }
// bottom middle main
Variants {
model: Quickshell.screens
delegate: PanelWindow {
id: tags
property var modelData
anchors {
bottom: true
}
// // bottom middle main
// Variants {
// model: Quickshell.screens
// delegate: PanelWindow {
// id: tags
// property var modelData
// anchors {
// bottom: true
// }
implicitHeight: 22
implicitWidth: (Tags.keys.length !== undefined) ? Tags.keys.length * 13 + 24 : 37;
color: "transparent"
// implicitHeight: 22
// implicitWidth: (Tags.keys.length !== undefined) ? Tags.keys.length * 13 + 24 : 37;
// color: "transparent"
Rectangle {
anchors {
fill: parent
}
color: Colours.c.black
topLeftRadius: 10
topRightRadius: 10
// Rectangle {
// anchors {
// fill: parent
// }
// color: Colours.c.black
// topLeftRadius: 10
// topRightRadius: 10
Rectangle {
anchors {
fill: parent
leftMargin: 12
rightMargin: 12
topMargin: 3
}
Row {
anchors {
fill: parent
}
spacing: 1
Repeater {
model: Tags.keys
delegate: Column {
id: baseCol
required property var modelData
spacing: 3
Rectangle {
property var tag: Tags.tags[baseCol.modelData]
width: 12
height: width
radius: width
color: tag.urgent ? Colours.c.red_b : (tag.enabled) ? Colours.c.yellow_b : Colours.c.black
Behavior on color {
ColorAnimation {
duration: 300
}
}
border {
width: 1
color: tag.urgent ? Colours.c.red_b : Colours.c.yellow_b
Behavior on color {
ColorAnimation {
duration: 300
}
}
}
}
Rectangle {
property var tag: Tags.tags[baseCol.modelData]
anchors.horizontalCenter: parent.horizontalCenter
width: 1
height: 1
color: tag.urgent ? Colours.c.red_b : (tag.occupied) ? Colours.c.yellow_b : Colours.c.black
Behavior on color {
ColorAnimation {
duration: 300
}
}
}
}
}
}
color: "transparent"
} // inner container
// Rectangle {
// anchors {
// fill: parent
// leftMargin: 12
// rightMargin: 12
// topMargin: 3
// }
// Row {
// anchors {
// fill: parent
// }
// spacing: 1
// Repeater {
// model: Tags.keys
// delegate: Column {
// id: baseCol
// required property var modelData
// spacing: 3
// Rectangle {
// property var tag: Tags.tags[baseCol.modelData]
// width: 12
// height: width
// radius: width
// color: tag.urgent ? Colours.c.red_b : (tag.enabled) ? Colours.c.yellow_b : Colours.c.black
// Behavior on color {
// ColorAnimation {
// duration: 300
// }
// }
// border {
// width: 1
// color: tag.urgent ? Colours.c.red_b : Colours.c.yellow_b
// Behavior on color {
// ColorAnimation {
// duration: 300
// }
// }
// }
// }
// Rectangle {
// property var tag: Tags.tags[baseCol.modelData]
// anchors.horizontalCenter: parent.horizontalCenter
// width: 1
// height: 1
// color: tag.urgent ? Colours.c.red_b : (tag.occupied) ? Colours.c.yellow_b : Colours.c.black
// Behavior on color {
// ColorAnimation {
// duration: 300
// }
// }
// }
// }
// }
// }
// color: "transparent"
// } // inner container
}// outer visible rect
// }// outer visible rect
exclusionMode: ExclusionMode.Ignore
WlrLayershell.layer: WlrLayer.Top
screen: modelData
}//invisible rect
}
// exclusionMode: ExclusionMode.Ignore
// WlrLayershell.layer: WlrLayer.Top
// screen: modelData
// }//invisible rect
// }
// pops up on current monitor
Launcher.Launcher {