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>
113 lines
3.6 KiB
QML
113 lines
3.6 KiB
QML
pragma ComponentBehavior: Bound
|
|
|
|
// NoSignal Workspaces overview (off the window-title module). Row of workspace
|
|
// thumbnails (active = accent border + glow), number + name below, click to
|
|
// switch. Wired to Hypr.
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Caelestia.Config
|
|
import qs.services
|
|
import qs.components
|
|
|
|
NsPanel {
|
|
id: root
|
|
|
|
implicitWidth: 5 * 124 + 16 * 2 + Theme.size.panelPad * 2 - 16
|
|
anchorMode: "center"
|
|
|
|
readonly property int shown: Config.bar.workspaces.shown
|
|
|
|
RowLayout {
|
|
Layout.fillWidth: true
|
|
|
|
StyledText {
|
|
text: "Workspaces"
|
|
color: Theme.text
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.font.panelTitle
|
|
font.weight: Font.DemiBold
|
|
}
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
}
|
|
|
|
StyledText {
|
|
text: root.shown + " desktops"
|
|
color: Theme.textFaint
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.font.bodySmall
|
|
}
|
|
}
|
|
|
|
RowLayout {
|
|
Layout.fillWidth: true
|
|
spacing: 16
|
|
|
|
Repeater {
|
|
model: root.shown
|
|
|
|
delegate: ColumnLayout {
|
|
id: cell
|
|
|
|
required property int index
|
|
readonly property int wsId: index + 1
|
|
readonly property var hw: Hypr.workspaces.values.find(w => w.id === wsId) ?? null
|
|
readonly property bool active: Hypr.activeWsId === wsId
|
|
readonly property bool occupied: (hw?.lastIpcObject.windows ?? 0) > 0
|
|
readonly property string wsName: {
|
|
const n = hw?.name ?? "";
|
|
return n && n !== String(wsId) && !n.startsWith("special") ? n : "";
|
|
}
|
|
|
|
spacing: 6
|
|
|
|
Rectangle {
|
|
implicitWidth: 108
|
|
implicitHeight: 68 // 16:10-ish
|
|
radius: Theme.radius.tile
|
|
color: Qt.rgba(0, 0, 0, cell.occupied ? 0.35 : 0.5)
|
|
border.width: cell.active ? 2 : 1
|
|
border.color: cell.active ? Theme.accent : Theme.panelBorder
|
|
|
|
MaterialIcon {
|
|
anchors.centerIn: parent
|
|
visible: cell.occupied
|
|
text: "web_asset"
|
|
color: Theme.textFaint
|
|
}
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
cursorShape: Qt.PointingHandCursor
|
|
onClicked: {
|
|
Hypr.dispatch(`workspace ${cell.wsId}`);
|
|
NsShell.close();
|
|
}
|
|
}
|
|
}
|
|
|
|
RowLayout {
|
|
Layout.alignment: Qt.AlignHCenter
|
|
spacing: 5
|
|
|
|
StyledText {
|
|
text: cell.wsId
|
|
color: cell.active ? Theme.accent : Theme.textMuted
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.font.bodySmall
|
|
font.weight: cell.active ? Font.DemiBold : Font.Normal
|
|
}
|
|
StyledText {
|
|
visible: cell.wsName !== ""
|
|
text: cell.wsName
|
|
color: cell.active ? Theme.accent : Theme.textMuted
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.font.bodySmall
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|