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>
162 lines
4.3 KiB
QML
162 lines
4.3 KiB
QML
pragma ComponentBehavior: Bound
|
|
|
|
// NoSignal Audio Mixer popout (off the volume pill). Output device row, master
|
|
// slider, per-app application sliders, input (mic) slider. Wired to Pipewire
|
|
// via the Audio service.
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.services
|
|
import qs.components
|
|
|
|
NsPanel {
|
|
id: root
|
|
|
|
implicitWidth: 340
|
|
anchorMode: "right"
|
|
|
|
// output device
|
|
RowLayout {
|
|
Layout.fillWidth: true
|
|
spacing: 8
|
|
|
|
MaterialIcon {
|
|
text: "speaker"
|
|
color: Theme.textMuted
|
|
}
|
|
|
|
StyledText {
|
|
Layout.fillWidth: true
|
|
text: Audio.sink?.description || Audio.sink?.name || "Output"
|
|
color: Theme.text
|
|
elide: Text.ElideRight
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.font.bodySmall
|
|
}
|
|
|
|
MaterialIcon {
|
|
text: "expand_more"
|
|
color: Theme.textFaint
|
|
}
|
|
}
|
|
|
|
AudioSlider {
|
|
icon: Audio.muted ? "volume_off" : "volume_up"
|
|
value: Audio.volume
|
|
onMoved: v => Audio.setVolume(v)
|
|
}
|
|
|
|
// applications
|
|
StyledText {
|
|
visible: Audio.streams.length > 0
|
|
text: "APPLICATIONS"
|
|
color: Theme.textFaint
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.font.label
|
|
font.letterSpacing: Theme.font.trackingLabel
|
|
}
|
|
|
|
Repeater {
|
|
model: Audio.streams
|
|
|
|
delegate: AudioSlider {
|
|
required property var modelData
|
|
|
|
Layout.fillWidth: true
|
|
icon: "graphic_eq"
|
|
label: modelData?.properties?.["application.name"] || modelData?.description || modelData?.name || "App"
|
|
value: modelData?.audio?.volume ?? 0
|
|
onMoved: v => {
|
|
if (modelData?.audio)
|
|
modelData.audio.volume = v;
|
|
}
|
|
}
|
|
}
|
|
|
|
// input
|
|
StyledText {
|
|
text: "INPUT"
|
|
Layout.topMargin: 2
|
|
color: Theme.textFaint
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.font.label
|
|
font.letterSpacing: Theme.font.trackingLabel
|
|
}
|
|
|
|
AudioSlider {
|
|
icon: Audio.sourceMuted ? "mic_off" : "mic"
|
|
value: Audio.sourceVolume
|
|
onMoved: v => Audio.setSourceVolume(v)
|
|
}
|
|
|
|
component AudioSlider: ColumnLayout {
|
|
id: s
|
|
|
|
property string icon
|
|
property string label: ""
|
|
property real value: 0
|
|
signal moved(real v)
|
|
|
|
Layout.fillWidth: true
|
|
spacing: 3
|
|
|
|
StyledText {
|
|
visible: s.label !== ""
|
|
text: s.label
|
|
color: Theme.textMuted
|
|
elide: Text.ElideRight
|
|
Layout.fillWidth: true
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.font.meta
|
|
}
|
|
|
|
RowLayout {
|
|
Layout.fillWidth: true
|
|
spacing: 10
|
|
|
|
MaterialIcon {
|
|
text: s.icon
|
|
color: Theme.textMuted
|
|
}
|
|
|
|
Rectangle {
|
|
Layout.fillWidth: true
|
|
implicitHeight: 6
|
|
radius: 3
|
|
color: Theme.fillSubtle
|
|
|
|
Rectangle {
|
|
width: parent.width * Math.max(0, Math.min(1, s.value))
|
|
height: parent.height
|
|
radius: 3
|
|
color: Theme.accent
|
|
}
|
|
|
|
Rectangle {
|
|
x: parent.width * Math.max(0, Math.min(1, s.value)) - width / 2
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
implicitWidth: 14
|
|
implicitHeight: 14
|
|
radius: 7
|
|
color: Theme.accent
|
|
}
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
onPressed: e => s.moved(Math.max(0, Math.min(1, e.x / width)))
|
|
onPositionChanged: e => {
|
|
if (pressed)
|
|
s.moved(Math.max(0, Math.min(1, e.x / width)));
|
|
}
|
|
}
|
|
}
|
|
|
|
StyledText {
|
|
text: Math.round(s.value * 100) + "%"
|
|
color: Theme.textMuted
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.font.meta
|
|
}
|
|
}
|
|
}
|
|
}
|