pragma ComponentBehavior: Bound import QtQuick import TNCat // The chip gets its own little click-through window so it can skitter away // from the cat across the whole screen. Window { id: win required property CatController cat required property AppSettings settings readonly property int chipSize: Math.round(settings.catSize * 0.45) width: chipSize height: Math.round(chipSize * 0.73) x: cat.chipX - width / 2 y: Screen.desktopAvailableHeight - height - settings.bottomMargin color: "transparent" flags: Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint | Qt.Tool | Qt.NoDropShadowWindowHint | Qt.WindowDoesNotAcceptFocus | Qt.WindowTransparentForInput | (Platform.bypassWindowManager ? Qt.X11BypassWindowManagerHint : 0) visible: cat.chipVisible && !Platform.opaqueBackground Behavior on x { NumberAnimation { duration: 320; easing.type: Easing.OutQuad } } Chip { anchors.fill: parent kick: win.cat.chipKick } }