Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
1.2 KiB
QML
48 lines
1.2 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.compat.noctalia.Commons
|
|
import qs.compat.noctalia.Services.UI
|
|
|
|
Rectangle {
|
|
id: root
|
|
|
|
property bool show: false
|
|
property var tooltipText
|
|
|
|
implicitWidth: root.show ? 6 * Style.uiScaleRatio : 0
|
|
implicitHeight: root.show ? 6 * Style.uiScaleRatio : 0
|
|
width: root.show ? 6 * Style.uiScaleRatio : 0
|
|
height: root.show ? 6 * Style.uiScaleRatio : 0
|
|
radius: width / 2
|
|
color: Color.mOnSurfaceVariant
|
|
opacity: 0.6
|
|
|
|
visible: root.show
|
|
|
|
Behavior on opacity {
|
|
NumberAnimation {
|
|
duration: Style.animationFast
|
|
}
|
|
}
|
|
|
|
MouseArea {
|
|
enabled: root.show && root.tooltipText && (!Array.isArray(root.tooltipText) || root.tooltipText.length > 0)
|
|
anchors.fill: parent
|
|
hoverEnabled: true
|
|
acceptedButtons: Qt.NoButton
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
onEntered: {
|
|
if (root.tooltipText && (!Array.isArray(root.tooltipText) || root.tooltipText.length > 0)) {
|
|
TooltipService.show(root, root.tooltipText);
|
|
}
|
|
}
|
|
|
|
onExited: {
|
|
if (root.tooltipText && (!Array.isArray(root.tooltipText) || root.tooltipText.length > 0)) {
|
|
TooltipService.hide();
|
|
}
|
|
}
|
|
}
|
|
}
|