sidebar: volume mixer: adjust style

This commit is contained in:
end-4
2025-08-08 21:37:32 +07:00
parent 4328746df0
commit 521061fc64
3 changed files with 9 additions and 13 deletions
@@ -15,7 +15,7 @@ Rectangle {
color: Appearance.colors.colLayer1 color: Appearance.colors.colLayer1
property int selectedTab: 0 property int selectedTab: 0
property var tabButtonList: [{"icon": "notifications", "name": Translation.tr("Notifications")}, {"icon": "volume_up", "name": Translation.tr("Volume mixer")}] property var tabButtonList: [{"icon": "notifications", "name": Translation.tr("Notifications")}, {"icon": "volume_up", "name": Translation.tr("Audio")}]
Keys.onPressed: (event) => { Keys.onPressed: (event) => {
if (event.key === Qt.Key_PageDown || event.key === Qt.Key_PageUp) { if (event.key === Qt.Key_PageDown || event.key === Qt.Key_PageUp) {
@@ -6,15 +6,17 @@ import QtQuick
import QtQuick.Layouts import QtQuick.Layouts
import Quickshell.Services.Pipewire import Quickshell.Services.Pipewire
GroupButton { RippleButton {
id: button id: button
required property bool input required property bool input
buttonRadius: Appearance.rounding.small buttonRadius: Appearance.rounding.small
colBackground: Appearance.colors.colLayer2 colBackground: Appearance.colors.colLayer2
colBackgroundHover: Appearance.colors.colLayer2Hover colBackgroundHover: Appearance.colors.colLayer2Hover
colBackgroundActive: Appearance.colors.colLayer2Active colRipple: Appearance.colors.colLayer2Active
clickedWidth: baseWidth + 30
implicitHeight: contentItem.implicitHeight + 6 * 2
implicitWidth: contentItem.implicitWidth + 6 * 2
contentItem: RowLayout { contentItem: RowLayout {
anchors.fill: parent anchors.fill: parent
@@ -99,19 +99,13 @@ Item {
} }
} }
// Separator
Rectangle {
color: Appearance.m3colors.m3outlineVariant
implicitHeight: 1
Layout.fillWidth: true
}
// Device selector // Device selector
ButtonGroup { RowLayout {
id: deviceSelectorRowLayout id: deviceSelectorRowLayout
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: false Layout.fillHeight: false
uniformCellSizes: true
AudioDeviceSelectorButton { AudioDeviceSelectorButton {
Layout.fillWidth: true Layout.fillWidth: true
input: false input: false