summaryrefslogtreecommitdiff
path: root/quickshell/.config
diff options
context:
space:
mode:
authorbh <qn+git@epicurus.dev>2026-03-11 15:06:53 +0800
committerbh <qn+git@epicurus.dev>2026-03-11 15:06:53 +0800
commit479dc0a28a2b8828635486474c0b67d836179a33 (patch)
treee2a0ef997dc7770732968c0a5c754883f5912230 /quickshell/.config
parent7e49e89dfa5fa3abb7351e3d4874d2d7302695d1 (diff)
Add runes to the workplaces
Diffstat (limited to 'quickshell/.config')
-rw-r--r--quickshell/.config/quickshell/shell.qml24
1 files changed, 17 insertions, 7 deletions
diff --git a/quickshell/.config/quickshell/shell.qml b/quickshell/.config/quickshell/shell.qml
index d2c802b..8ce5869 100644
--- a/quickshell/.config/quickshell/shell.qml
+++ b/quickshell/.config/quickshell/shell.qml
@@ -66,19 +66,29 @@ PanelWindow {
spacing: 12
Repeater {
- model: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "󱉼"]
+ model: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "ᚨ", "ᚠ"]
- Text {
+ Item {
required property int index
required property string modelData
property int wsId: index + 1
property string state: wsState(wsId)
- text: modelData
- color: state === "focused" ? "#FFC500" : state === "occupied" ? "#8affff" : "#4d7f7f"
- font.family: "Noto Sans CJK SC"
- font.pixelSize: 13
- font.bold: state === "focused"
+ width: wsLabel.implicitWidth
+ height: wsLabel.implicitHeight
+
+ Text {
+ id: wsLabel
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.verticalCenterOffset: parent.wsId >= 11 ? 4 : 0
+
+ text: parent.modelData
+ color: parent.state === "focused" ? "#FFC500" : parent.state === "occupied" ? "#8affff" : "#4d7f7f"
+ font.family: parent.wsId >= 11 ? "Junicode" : "Noto Sans CJK SC"
+ font.pixelSize: parent.wsId >= 11 ? 17 : 13
+ font.bold: parent.state === "focused"
+ }
MouseArea {
anchors.fill: parent