KeyboardLayout: fix language detection/parsing

Bar: add a tiny bit more spacing between widgets
NHorizontalPill: fix layout
MediaMini: set size to 0 if no media is playing
This commit is contained in:
Ly-sec 2025-09-14 10:21:53 +02:00
parent d41b59d563
commit ccd7458ea3
4 changed files with 18 additions and 15 deletions

View file

@ -1,6 +1,7 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Qt5Compat.GraphicalEffects
import Quickshell
import Quickshell.Wayland
import Quickshell.Services.UPower
@ -57,7 +58,7 @@ Variants {
anchors.fill: parent
clip: true
// Background fill
// Background fill with shadow
Rectangle {
id: bar
@ -92,10 +93,10 @@ Variants {
// Top section (left widgets)
Column {
spacing: Style.marginXS * root.scaling
spacing: Style.marginM * root.scaling
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: Style.marginS * root.scaling
anchors.topMargin: Style.marginL * root.scaling
width: parent.width
Repeater {
@ -117,7 +118,7 @@ Variants {
// Center section (center widgets)
Column {
spacing: Style.marginXS * root.scaling
spacing: Style.marginM * root.scaling
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
width: parent.width
@ -141,10 +142,10 @@ Variants {
// Bottom section (right widgets)
Column {
spacing: Style.marginXS * root.scaling
spacing: Style.marginM * root.scaling
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.bottomMargin: Style.marginS * root.scaling
anchors.bottomMargin: Style.marginL * root.scaling
width: parent.width
Repeater {