From 55b74ad38f4bd3026787b4b95853dddb33987cf6 Mon Sep 17 00:00:00 2001 From: loner <2788892716@qq.com> Date: Sat, 6 Sep 2025 09:46:42 +0800 Subject: [PATCH] fix: align KeyboardLayout widget with other bar components --- Modules/Bar/Widgets/KeyboardLayout.qml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Modules/Bar/Widgets/KeyboardLayout.qml b/Modules/Bar/Widgets/KeyboardLayout.qml index e304b7e..b9b44a5 100644 --- a/Modules/Bar/Widgets/KeyboardLayout.qml +++ b/Modules/Bar/Widgets/KeyboardLayout.qml @@ -7,7 +7,7 @@ import qs.Commons import qs.Services import qs.Widgets -RowLayout { +Item { id: root property ShellScreen screen @@ -19,17 +19,13 @@ RowLayout { // Use the shared service for keyboard layout property string currentLayout: KeyboardLayoutService.currentLayout - Layout.preferredWidth: pill.implicitWidth - Layout.preferredHeight: pill.implicitHeight - spacing: 0 + implicitWidth: pill.width + implicitHeight: pill.height NPill { id: pill - Layout.alignment: Qt.AlignCenter - Layout.fillWidth: false - Layout.fillHeight: false - + anchors.verticalCenter: parent.verticalCenter rightOpen: BarWidgetRegistry.getNPillDirection(root) icon: "keyboard_alt" iconCircleColor: Color.mPrimary