Compare commits

..

No commits in common. "f687e17c944b20bef1cbcb25b134568a2d5190fc" and "ad3a275c21698a499bbce85fe04f6facd9a5fa18" have entirely different histories.

5 changed files with 6 additions and 26 deletions

View file

@ -7,13 +7,11 @@ PanelWindow {
id: window id: window
required property string name required property string name
property alias background: background
WlrLayershell.namespace: `lux-${name}` WlrLayershell.namespace: `lux-${name}`
color: "transparent" color: "transparent"
Rectangle { Rectangle {
id: background
anchors.fill: parent anchors.fill: parent
radius: Styling.theme.radiusBox radius: Styling.theme.radiusBox
Behavior on radius { Behavior on radius {

View file

@ -1,3 +1,4 @@
import qs.config
import QtQuick import QtQuick
import QtQuick.Controls.Basic import QtQuick.Controls.Basic
@ -10,10 +11,10 @@ TabBar {
id: view id: view
model: control.contentModel model: control.contentModel
currentIndex: control.currentIndex currentIndex: control.currentIndex
spacing: control.spacing
orientation: ListView.Horizontal orientation: ListView.Horizontal
boundsBehavior: Flickable.StopAtBounds boundsBehavior: Flickable.StopAtBounds
} }
background: Rectangle {
background: Item {} color: Styling.theme.base200
}
} }

View file

@ -5,8 +5,6 @@ import QtQuick.Controls.Basic
TabButton { TabButton {
id: control id: control
property alias radius: rectangle.radius
contentItem: Text { contentItem: Text {
font.pixelSize: Styling.typography.textSize.base font.pixelSize: Styling.typography.textSize.base
font.family: Styling.typography.fontFamily font.family: Styling.typography.fontFamily

View file

@ -23,7 +23,7 @@ ColumnLayout {
StyledText { StyledText {
Layout.column: 1 Layout.column: 1
Layout.row: 1 Layout.row: 1
text: "Device" text: "Speakers"
} }
StyledComboBox { StyledComboBox {
@ -36,23 +36,6 @@ ColumnLayout {
Pipewire.setSink(Pipewire.sinks[index]); Pipewire.setSink(Pipewire.sinks[index]);
} }
} }
StyledText {
Layout.column: 1
Layout.row: 2
text: "Volume"
}
StyledSlider {
Layout.column: 2
Layout.row: 2
from: 0.0
to: 1.0
value: Pipewire.volume
onMoved: {
Pipewire.setVolume(value);
}
}
} }
} }

View file

@ -19,7 +19,7 @@ Singleton {
function setVolume(volume: real): void { function setVolume(volume: real): void {
if (sink?.ready && sink?.audio) { if (sink?.ready && sink?.audio) {
sink.audio.muted = false; sink.audio.muted = false;
sink.audio.volume = Math.min(volume, 1.0); sink.audio.volume = volume;
} }
} }