pragma ComponentBehavior: Bound import QtQuick import TNCat // The mug stands on the ground next to the cat, click-through like the chip. Window { id: win required property CatController cat required property AppSettings settings readonly property int cupSize: Math.round(settings.catSize * 0.38) width: cupSize height: Math.round(width * mug.implicitHeight / mug.implicitWidth) x: cat.cupX - width / 2 y: Screen.desktopAvailableHeight - height - settings.bottomMargin color: Platform.opaqueBackground ? "#d8d8d8" : "transparent" flags: Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint | Qt.Tool | Qt.NoDropShadowWindowHint | Qt.WindowDoesNotAcceptFocus | Qt.WindowTransparentForInput | (Platform.bypassWindowManager ? Qt.X11BypassWindowManagerHint : 0) visible: cat.cupVisible Cup { id: mug anchors.fill: parent } }