cava + nix
This commit is contained in:
+50
-76
@@ -24,101 +24,75 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
CustomRect {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: DynamicColors.tPalette.m3surfaceContainer
|
||||
height: 22
|
||||
radius: height / 2
|
||||
}
|
||||
|
||||
Behavior on color {
|
||||
CAnim {
|
||||
}
|
||||
RowLayout {
|
||||
id: layout
|
||||
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: Appearance.padding.small
|
||||
anchors.rightMargin: Appearance.padding.small * 2
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
MaterialIcon {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
color: Audio.muted ? DynamicColors.palette.m3error : root.textColor
|
||||
font.pointSize: 14
|
||||
text: Audio.muted ? "volume_off" : "volume_up"
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.centerIn: parent
|
||||
border.color: "#30ffffff"
|
||||
border.width: 0
|
||||
color: "transparent"
|
||||
height: parent.height
|
||||
radius: width / 2
|
||||
width: parent.width
|
||||
}
|
||||
CustomRect {
|
||||
Layout.fillWidth: true
|
||||
color: "#50ffffff"
|
||||
implicitHeight: 4
|
||||
radius: 20
|
||||
|
||||
RowLayout {
|
||||
id: layout
|
||||
CustomRect {
|
||||
id: sinkVolumeBar
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: Appearance.padding.small
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: Appearance.padding.small * 2
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: Audio.muted ? DynamicColors.palette.m3error : root.barColor
|
||||
implicitWidth: parent.width * (Audio.volume ?? 0)
|
||||
radius: parent.radius
|
||||
|
||||
MaterialIcon {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
color: Audio.muted ? DynamicColors.palette.m3error : root.textColor
|
||||
font.pointSize: 14
|
||||
text: Audio.muted ? "volume_off" : "volume_up"
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
Layout.fillWidth: true
|
||||
color: "#50ffffff"
|
||||
implicitHeight: 4
|
||||
radius: 20
|
||||
|
||||
Rectangle {
|
||||
id: sinkVolumeBar
|
||||
|
||||
color: Audio.muted ? DynamicColors.palette.m3error : root.barColor
|
||||
implicitWidth: parent.width * (Audio.volume ?? 0)
|
||||
radius: parent.radius
|
||||
|
||||
Behavior on color {
|
||||
CAnim {
|
||||
}
|
||||
}
|
||||
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
top: parent.top
|
||||
}
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
top: parent.top
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
color: (Audio.sourceMuted ?? false) ? DynamicColors.palette.m3error : root.textColor
|
||||
font.pointSize: 14
|
||||
text: Audio.sourceMuted ? "mic_off" : "mic"
|
||||
}
|
||||
MaterialIcon {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
color: (Audio.sourceMuted ?? false) ? DynamicColors.palette.m3error : root.textColor
|
||||
font.pointSize: 14
|
||||
text: Audio.sourceMuted ? "mic_off" : "mic"
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
Layout.fillWidth: true
|
||||
color: "#50ffffff"
|
||||
implicitHeight: 4
|
||||
radius: 20
|
||||
CustomRect {
|
||||
Layout.fillWidth: true
|
||||
color: "#50ffffff"
|
||||
implicitHeight: 4
|
||||
radius: 20
|
||||
|
||||
Rectangle {
|
||||
id: sourceVolumeBar
|
||||
CustomRect {
|
||||
id: sourceVolumeBar
|
||||
|
||||
color: (Audio.sourceMuted ?? false) ? DynamicColors.palette.m3error : root.barColor
|
||||
implicitWidth: parent.width * (Audio.sourceVolume ?? 0)
|
||||
radius: parent.radius
|
||||
color: (Audio.sourceMuted ?? false) ? DynamicColors.palette.m3error : root.barColor
|
||||
implicitWidth: parent.width * (Audio.sourceVolume ?? 0)
|
||||
radius: parent.radius
|
||||
|
||||
Behavior on color {
|
||||
CAnim {
|
||||
}
|
||||
}
|
||||
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
top: parent.top
|
||||
}
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
top: parent.top
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user