From e189f0317f054b1f09fa499e6ccb67914a71ba65 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 16 Aug 2025 11:54:50 +0700 Subject: [PATCH] move StyledPopup to Bar --- .../ii/modules/{common/widgets => bar}/StyledPopup.qml | 0 .config/quickshell/ii/modules/bar/weather/WeatherPopup.qml | 1 + .config/quickshell/ii/modules/verticalBar/VerticalMedia.qml | 4 +++- 3 files changed, 4 insertions(+), 1 deletion(-) rename .config/quickshell/ii/modules/{common/widgets => bar}/StyledPopup.qml (100%) diff --git a/.config/quickshell/ii/modules/common/widgets/StyledPopup.qml b/.config/quickshell/ii/modules/bar/StyledPopup.qml similarity index 100% rename from .config/quickshell/ii/modules/common/widgets/StyledPopup.qml rename to .config/quickshell/ii/modules/bar/StyledPopup.qml diff --git a/.config/quickshell/ii/modules/bar/weather/WeatherPopup.qml b/.config/quickshell/ii/modules/bar/weather/WeatherPopup.qml index aa61359d..0c472493 100644 --- a/.config/quickshell/ii/modules/bar/weather/WeatherPopup.qml +++ b/.config/quickshell/ii/modules/bar/weather/WeatherPopup.qml @@ -5,6 +5,7 @@ import qs.modules.common.widgets import QtQuick import QtQuick.Layouts +import "../" StyledPopup { id: root diff --git a/.config/quickshell/ii/modules/verticalBar/VerticalMedia.qml b/.config/quickshell/ii/modules/verticalBar/VerticalMedia.qml index c20e4e9b..f64792f2 100644 --- a/.config/quickshell/ii/modules/verticalBar/VerticalMedia.qml +++ b/.config/quickshell/ii/modules/verticalBar/VerticalMedia.qml @@ -8,6 +8,8 @@ import QtQuick import QtQuick.Layouts import Quickshell.Services.Mpris +import "../bar" as Bar + MouseArea { id: root property bool borderless: Config.options.bar.borderless @@ -64,7 +66,7 @@ MouseArea { } } - StyledPopup { + Bar.StyledPopup { hoverTarget: root active: GlobalStates.mediaControlsOpen ? false : root.containsMouse