forked from Shinonome/dots-hyprland
weather bar: remove unnecessary nested item
This commit is contained in:
@@ -7,18 +7,12 @@ import Quickshell
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
Item {
|
||||
MouseArea {
|
||||
id: root
|
||||
property real margin: 10
|
||||
implicitHeight: mouseArea.implicitHeight
|
||||
implicitWidth: mouseArea.implicitWidth + margin * 2
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
property bool hovered: false
|
||||
implicitWidth: rowLayout.implicitWidth
|
||||
implicitWidth: rowLayout.implicitWidth + margin * 2
|
||||
implicitHeight: rowLayout.implicitHeight
|
||||
anchors.centerIn: root
|
||||
|
||||
hoverEnabled: true
|
||||
onEntered: {
|
||||
@@ -46,7 +40,6 @@ Item {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LazyLoader {
|
||||
id: popupLoader
|
||||
|
||||
Reference in New Issue
Block a user