From 479dc0a28a2b8828635486474c0b67d836179a33 Mon Sep 17 00:00:00 2001 From: bh Date: Wed, 11 Mar 2026 15:06:53 +0800 Subject: Add runes to the workplaces --- quickshell/.config/quickshell/shell.qml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'quickshell') 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 -- cgit v1.2.3