Merge pull request #225 from lonerOrz/fix/keyboard-layout-alignment
fix: align KeyboardLayout widget with other bar components
This commit is contained in:
commit
9065257961
1 changed files with 4 additions and 8 deletions
|
|
@ -7,7 +7,7 @@ import qs.Commons
|
||||||
import qs.Services
|
import qs.Services
|
||||||
import qs.Widgets
|
import qs.Widgets
|
||||||
|
|
||||||
RowLayout {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property ShellScreen screen
|
property ShellScreen screen
|
||||||
|
|
@ -19,17 +19,13 @@ RowLayout {
|
||||||
// Use the shared service for keyboard layout
|
// Use the shared service for keyboard layout
|
||||||
property string currentLayout: KeyboardLayoutService.currentLayout
|
property string currentLayout: KeyboardLayoutService.currentLayout
|
||||||
|
|
||||||
Layout.preferredWidth: pill.implicitWidth
|
implicitWidth: pill.width
|
||||||
Layout.preferredHeight: pill.implicitHeight
|
implicitHeight: pill.height
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
NPill {
|
NPill {
|
||||||
id: pill
|
id: pill
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
Layout.fillWidth: false
|
|
||||||
Layout.fillHeight: false
|
|
||||||
|
|
||||||
rightOpen: BarWidgetRegistry.getNPillDirection(root)
|
rightOpen: BarWidgetRegistry.getNPillDirection(root)
|
||||||
icon: "keyboard_alt"
|
icon: "keyboard_alt"
|
||||||
iconCircleColor: Color.mPrimary
|
iconCircleColor: Color.mPrimary
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue