nosignal-shell/modules/nsbar/panels/NsSystemTray.qml
28allday 36f6f5a157 feat(nosignal): interface redesign — slim glass bar + floating popouts
Convert the caelestia shell to the NoSignal "design_handoff_quickshell_shell"
spec: a slim translucent top bar with floating glass popouts, fixed dark-glass
chrome + Material You dynamic accent, square corners, JetBrains Mono.

- Theme singleton (services/Theme.qml): design tokens; accent = m3primary
  (dynamic), fixed glass/text, square radii.
- New slim bar as its own PanelWindow (modules/nsbar/NsBar.qml), additive in
  shell.qml; reuses caelestia services + components. Helpers: BarPill,
  NsWorkspaces (numbered, active=accent pill), NsOverlay (popout host, one-at-a-
  time via services/NsShell.qml, outside-click + Esc), components/NsPanel +
  components/NsSwitch.
- Old caelestia frame removed: BarWrapper collapsed; ContentWindow border 0 +
  borderTop 0; Exclusions zones 0. Drawer engine kept for launcher/OSD/lock.
- 9 popouts (modules/nsbar/panels/): Calendar, QuickSettings, Network,
  Bluetooth, Notifications, Audio, SystemTray, Overview, PowerMenu.
- Clock restyled (date muted + time DemiBold).
- nexus (Settings) reskinned: dark-glass window + cards, square corners
  (Nexus.qml, common/ConnectedRect.qml) — keeps all pages/functionality.

Launcher kept as-is. Font (JetBrainsMono) + rounding.scale=0 + Super+Alt+Space
nexus bind are caelestia/hypr CONFIG and ship in the OS, not this fork.
Next: full Material Symbols -> Nerd Font icon remap.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 10:36:33 +01:00

100 lines
3.1 KiB
QML

pragma ComponentBehavior: Bound
// NoSignal System Tray popout (off the tray pill). Grid of StatusNotifierItems;
// left-click activates, right-click opens the item's menu. Uses SystemTray.
import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Services.SystemTray
import qs.services
import qs.components
NsPanel {
id: root
implicitWidth: 260
anchorMode: "right"
StyledText {
text: "System Tray"
color: Theme.text
font.family: Theme.font.family
font.pixelSize: Theme.font.panelTitle
font.weight: Font.DemiBold
}
GridLayout {
Layout.fillWidth: true
columns: 4
rowSpacing: 8
columnSpacing: 8
visible: SystemTray.items.values.length > 0
Repeater {
model: SystemTray.items
delegate: ColumnLayout {
id: cell
required property var modelData
Layout.alignment: Qt.AlignHCenter
spacing: 4
Rectangle {
Layout.alignment: Qt.AlignHCenter
implicitWidth: 44
implicitHeight: 44
radius: Theme.radius.tile
color: cellMa.containsMouse ? Theme.hover : Theme.fillSubtle
Image {
anchors.centerIn: parent
width: 22
height: 22
source: cell.modelData?.icon ?? ""
sourceSize.width: 44
sourceSize.height: 44
fillMode: Image.PreserveAspectFit
}
MouseArea {
id: cellMa
anchors.fill: parent
hoverEnabled: true
acceptedButtons: Qt.LeftButton | Qt.RightButton
cursorShape: Qt.PointingHandCursor
onClicked: mouse => {
if (mouse.button === Qt.RightButton)
cell.modelData?.display(cell, 0, height);
else if (cell.modelData?.onlyMenu)
cell.modelData?.display(cell, 0, height);
else
cell.modelData?.activate();
}
}
}
StyledText {
Layout.alignment: Qt.AlignHCenter
Layout.maximumWidth: 50
text: cell.modelData?.title || cell.modelData?.id || ""
color: Theme.textMuted
elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter
font.family: Theme.font.family
font.pixelSize: Theme.font.meta
}
}
}
}
StyledText {
visible: SystemTray.items.values.length === 0
text: "No tray items"
color: Theme.textMuted
font.family: Theme.font.family
font.pixelSize: Theme.font.bodySmall
}
}