From 08e46c5af88842a707849cb30b4da75536a482b7 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 9 Jun 2025 09:20:51 +0200 Subject: [PATCH] make 0-size warnings stfu --- .config/quickshell/modules/bar/ActiveWindow.qml | 1 - .config/quickshell/modules/bar/Bar.qml | 2 +- .config/quickshell/modules/common/widgets/PrimaryTabButton.qml | 1 + .config/quickshell/modules/common/widgets/Revealer.qml | 1 + .config/quickshell/modules/common/widgets/RippleButton.qml | 1 + 5 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/quickshell/modules/bar/ActiveWindow.qml b/.config/quickshell/modules/bar/ActiveWindow.qml index 574cdb8c6..86018129b 100644 --- a/.config/quickshell/modules/bar/ActiveWindow.qml +++ b/.config/quickshell/modules/bar/ActiveWindow.qml @@ -12,7 +12,6 @@ Item { height: parent.height width: colLayout.width - ColumnLayout { id: colLayout diff --git a/.config/quickshell/modules/bar/Bar.qml b/.config/quickshell/modules/bar/Bar.qml index ca9b1e57e..88a605fe1 100644 --- a/.config/quickshell/modules/bar/Bar.qml +++ b/.config/quickshell/modules/bar/Bar.qml @@ -176,7 +176,7 @@ Scope { } ActiveWindow { - visible: barRoot.useShortenedForm === 0 + visible: barRoot.useShortenedForm === 0 && width > 0 && height > 0 Layout.rightMargin: Appearance.rounding.screenRounding Layout.fillWidth: true bar: barRoot diff --git a/.config/quickshell/modules/common/widgets/PrimaryTabButton.qml b/.config/quickshell/modules/common/widgets/PrimaryTabButton.qml index b7c628712..a47f108b7 100644 --- a/.config/quickshell/modules/common/widgets/PrimaryTabButton.qml +++ b/.config/quickshell/modules/common/widgets/PrimaryTabButton.qml @@ -118,6 +118,7 @@ TabButton { property real implicitWidth: 0 property real implicitHeight: 0 + visible: width > 0 && height > 0 Behavior on opacity { animation: Appearance?.animation.elementMoveFast.colorAnimation.createObject(this) diff --git a/.config/quickshell/modules/common/widgets/Revealer.qml b/.config/quickshell/modules/common/widgets/Revealer.qml index 327d4aaa1..f3d438b55 100644 --- a/.config/quickshell/modules/common/widgets/Revealer.qml +++ b/.config/quickshell/modules/common/widgets/Revealer.qml @@ -13,6 +13,7 @@ Item { implicitWidth: (reveal || vertical) ? childrenRect.width : 0 implicitHeight: (reveal || !vertical) ? childrenRect.height : 0 + visible: width > 0 && height > 0 Behavior on implicitWidth { enabled: !vertical diff --git a/.config/quickshell/modules/common/widgets/RippleButton.qml b/.config/quickshell/modules/common/widgets/RippleButton.qml index cd7762b9d..9931cd02a 100644 --- a/.config/quickshell/modules/common/widgets/RippleButton.qml +++ b/.config/quickshell/modules/common/widgets/RippleButton.qml @@ -155,6 +155,7 @@ Button { width: ripple.implicitWidth height: ripple.implicitHeight opacity: 0 + visible: width > 0 && height > 0 property real implicitWidth: 0 property real implicitHeight: 0