osd/volume: Don't use padding in SwipeListItem to fix warnings

This commit is contained in:
Devin Lin 2022-06-27 17:29:34 -04:00
parent 5519abd82c
commit e18d5f73ed
2 changed files with 9 additions and 5 deletions

View file

@ -72,6 +72,7 @@ ColumnLayout {
level: 2 level: 2
text: i18n("Outputs") text: i18n("Outputs")
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: PlasmaCore.Units.smallSpacing
Layout.leftMargin: PlasmaCore.Units.smallSpacing Layout.leftMargin: PlasmaCore.Units.smallSpacing
} }
@ -82,6 +83,7 @@ ColumnLayout {
model: paSinkFilterModel model: paSinkFilterModel
delegate: DeviceListItem { delegate: DeviceListItem {
Layout.fillWidth: true Layout.fillWidth: true
Layout.margins: PlasmaCore.Units.smallSpacing
type: "sink" type: "sink"
onlyone: sinkView.count === 1 onlyone: sinkView.count === 1
} }
@ -100,6 +102,7 @@ ColumnLayout {
level: 2 level: 2
text: i18n("Inputs") text: i18n("Inputs")
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: PlasmaCore.Units.smallSpacing
Layout.leftMargin: PlasmaCore.Units.smallSpacing Layout.leftMargin: PlasmaCore.Units.smallSpacing
} }
@ -110,6 +113,7 @@ ColumnLayout {
model: paSourceFilterModel model: paSourceFilterModel
delegate: DeviceListItem { delegate: DeviceListItem {
Layout.fillWidth: true Layout.fillWidth: true
Layout.margins: PlasmaCore.Units.smallSpacing
type: "source" type: "source"
onlyone: sinkView.count === 1 onlyone: sinkView.count === 1
} }
@ -129,6 +133,7 @@ ColumnLayout {
level: 2 level: 2
text: i18n("Playback Streams") text: i18n("Playback Streams")
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: PlasmaCore.Units.smallSpacing
Layout.leftMargin: PlasmaCore.Units.smallSpacing Layout.leftMargin: PlasmaCore.Units.smallSpacing
} }
@ -142,6 +147,7 @@ ColumnLayout {
} }
delegate: StreamListItem { delegate: StreamListItem {
Layout.fillWidth: true Layout.fillWidth: true
Layout.margins: PlasmaCore.Units.smallSpacing
width: sourceOutputView.width width: sourceOutputView.width
type: "sink-input" type: "sink-input"
devicesModel: sourceView.model devicesModel: sourceView.model
@ -159,6 +165,7 @@ ColumnLayout {
delegate: StreamListItem { delegate: StreamListItem {
Layout.fillWidth: true Layout.fillWidth: true
Layout.margins: PlasmaCore.Units.smallSpacing
width: sourceOutputView.width width: sourceOutputView.width
type: "sink-input" type: "sink-input"
devicesModel: sourceView.model devicesModel: sourceView.model
@ -179,6 +186,7 @@ ColumnLayout {
level: 2 level: 2
text: i18n("Recording Streams") text: i18n("Recording Streams")
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: PlasmaCore.Units.smallSpacing
Layout.leftMargin: PlasmaCore.Units.smallSpacing Layout.leftMargin: PlasmaCore.Units.smallSpacing
} }
@ -192,6 +200,7 @@ ColumnLayout {
} }
delegate: StreamListItem { delegate: StreamListItem {
Layout.fillWidth: true Layout.fillWidth: true
Layout.margins: PlasmaCore.Units.smallSpacing
width: sourceOutputView.width width: sourceOutputView.width
type: "source-output" type: "source-output"
devicesModel: sourceView.model devicesModel: sourceView.model

View file

@ -31,11 +31,6 @@ Kirigami.SwipeListItem {
property alias iconUsesPlasmaTheme: clientIcon.usesPlasmaTheme property alias iconUsesPlasmaTheme: clientIcon.usesPlasmaTheme
property string type // sink, source, source-output property string type // sink, source, source-output
topPadding: PlasmaCore.Units.smallSpacing
bottomPadding: PlasmaCore.Units.smallSpacing
leftPadding: PlasmaCore.Units.smallSpacing
rightPadding: PlasmaCore.Units.smallSpacing
alwaysVisibleActions: true alwaysVisibleActions: true
backgroundColor: "transparent" // we use panel background, no need for the same colour to be on top backgroundColor: "transparent" // we use panel background, no need for the same colour to be on top