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>
32 lines
995 B
QML
32 lines
995 B
QML
import QtQuick
|
|
import QtQuick.Effects
|
|
import qs.compat.noctalia.Commons
|
|
import qs.compat.noctalia.Services.Power
|
|
|
|
// Unified shadow system
|
|
Item {
|
|
id: root
|
|
|
|
required property var source
|
|
|
|
property bool autoPaddingEnabled: false
|
|
property real shadowHorizontalOffset: Settings.data.general.shadowOffsetX
|
|
property real shadowVerticalOffset: Settings.data.general.shadowOffsetY
|
|
property real shadowOpacity: Style.shadowOpacity
|
|
property color shadowColor: "black"
|
|
property real shadowBlur: Style.shadowBlur
|
|
|
|
layer.enabled: Settings.data.general.enableShadows && !PowerProfileService.noctaliaPerformanceMode
|
|
layer.effect: MultiEffect {
|
|
source: root.source
|
|
shadowEnabled: true
|
|
blurMax: Style.shadowBlurMax
|
|
shadowBlur: root.shadowBlur
|
|
shadowOpacity: root.shadowOpacity
|
|
shadowColor: root.shadowColor
|
|
shadowHorizontalOffset: root.shadowHorizontalOffset
|
|
shadowVerticalOffset: root.shadowVerticalOffset
|
|
autoPaddingEnabled: root.autoPaddingEnabled
|
|
}
|
|
}
|