forked from Shinonome/dots-hyprland
move StyledPopup to Bar
This commit is contained in:
@@ -5,6 +5,7 @@ import qs.modules.common.widgets
|
|||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
import "../"
|
||||||
|
|
||||||
StyledPopup {
|
StyledPopup {
|
||||||
id: root
|
id: root
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import QtQuick
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import Quickshell.Services.Mpris
|
import Quickshell.Services.Mpris
|
||||||
|
|
||||||
|
import "../bar" as Bar
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: root
|
id: root
|
||||||
property bool borderless: Config.options.bar.borderless
|
property bool borderless: Config.options.bar.borderless
|
||||||
@@ -64,7 +66,7 @@ MouseArea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledPopup {
|
Bar.StyledPopup {
|
||||||
hoverTarget: root
|
hoverTarget: root
|
||||||
active: GlobalStates.mediaControlsOpen ? false : root.containsMouse
|
active: GlobalStates.mediaControlsOpen ? false : root.containsMouse
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user