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>
46 lines
959 B
QML
46 lines
959 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
// NoSignal toggle switch (animated 16px knob) used in panel headers.
|
|
|
|
import QtQuick
|
|
import qs.services
|
|
|
|
Rectangle {
|
|
id: root
|
|
|
|
property bool on: false
|
|
signal toggled
|
|
|
|
implicitWidth: 38
|
|
implicitHeight: 22
|
|
radius: 11
|
|
color: on ? Theme.accent : Theme.fillSubtle
|
|
|
|
Behavior on color {
|
|
ColorAnimation {
|
|
duration: Theme.hoverMs
|
|
}
|
|
}
|
|
|
|
Rectangle {
|
|
x: root.on ? parent.width - width - 3 : 3
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
implicitWidth: 16
|
|
implicitHeight: 16
|
|
radius: 8
|
|
color: root.on ? Theme.onAccent : Theme.text
|
|
|
|
Behavior on x {
|
|
NumberAnimation {
|
|
duration: 120
|
|
easing.type: Easing.OutCubic
|
|
}
|
|
}
|
|
}
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
cursorShape: Qt.PointingHandCursor
|
|
onClicked: root.toggled()
|
|
}
|
|
}
|