Files
glassMxrph/quickshell/compat/noctalia/Widgets/NBox.qml
T
mxandClaude Opus 5.5 99e64a7713 Add glassMxrph shell sources
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>
2026-10-07 22:36:17 +02:00

31 lines
733 B
QML

import QtQuick
import qs.compat.noctalia.Commons
// Rounded group container using the variant surface color.
// To be used in side panels and settings panes to group fields or buttons.
// Opacity is based on panelBackgroundOpacity but clamped to a minimum to avoid full transparency.
Item {
id: root
property color color: Color.mSurfaceVariant
property bool forceOpaque: false
property alias radius: bg.radius
property alias border: bg.border
Rectangle {
id: bg
anchors.fill: parent
radius: Style.radiusM
border.color: Style.boxBorderColor
border.width: Style.borderS
color: {
if (forceOpaque) {
return root.color;
}
return Color.smartAlpha(root.color);
}
}
}