diff options
| author | bh <qn+git@epicurus.dev> | 2026-03-11 15:06:53 +0800 |
|---|---|---|
| committer | bh <qn+git@epicurus.dev> | 2026-03-11 15:06:53 +0800 |
| commit | 479dc0a28a2b8828635486474c0b67d836179a33 (patch) | |
| tree | e2a0ef997dc7770732968c0a5c754883f5912230 /quickshell/.config | |
| parent | 7e49e89dfa5fa3abb7351e3d4874d2d7302695d1 (diff) | |
Add runes to the workplaces
Diffstat (limited to 'quickshell/.config')
| -rw-r--r-- | quickshell/.config/quickshell/shell.qml | 24 |
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 |
