forked from Shinonome/dots-hyprland
overlay: adjust volume mixer padding
This commit is contained in:
@@ -143,7 +143,6 @@ AbstractOverlayWidget {
|
|||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
margins: titleBar.padding
|
margins: titleBar.padding
|
||||||
leftMargin: titleBar.padding + 8
|
|
||||||
bottomMargin: root.fancyBorders ? 0 : titleBar.padding
|
bottomMargin: root.fancyBorders ? 0 : titleBar.padding
|
||||||
}
|
}
|
||||||
spacing: 2
|
spacing: 2
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ StyledOverlayWidget {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
color: Appearance.m3colors.m3surfaceContainer
|
color: Appearance.m3colors.m3surfaceContainer
|
||||||
radius: root.contentRadius
|
radius: root.contentRadius
|
||||||
property real padding: 16
|
property real padding: 6
|
||||||
implicitHeight: 600
|
implicitHeight: 600
|
||||||
implicitWidth: 350
|
implicitWidth: 350
|
||||||
|
|
||||||
@@ -53,8 +53,28 @@ StyledOverlayWidget {
|
|||||||
}
|
}
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
VolumeDialogContent { isSink: true }
|
PaddedVolumeDialogContent {
|
||||||
VolumeDialogContent { isSink: false }
|
isSink: true
|
||||||
|
}
|
||||||
|
PaddedVolumeDialogContent {
|
||||||
|
isSink: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
component PaddedVolumeDialogContent: Item {
|
||||||
|
id: paddedVolumeDialogContent
|
||||||
|
property alias isSink: volDialogContent.isSink
|
||||||
|
property real padding: 12
|
||||||
|
implicitWidth: volDialogContent.implicitWidth + padding * 2
|
||||||
|
implicitHeight: volDialogContent.implicitHeight + padding * 2
|
||||||
|
|
||||||
|
VolumeDialogContent {
|
||||||
|
id: volDialogContent
|
||||||
|
anchors {
|
||||||
|
fill: parent
|
||||||
|
margins: paddedVolumeDialogContent.padding
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user