mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
overlay: adjust volume mixer padding
This commit is contained in:
@@ -143,7 +143,6 @@ AbstractOverlayWidget {
|
||||
anchors {
|
||||
fill: parent
|
||||
margins: titleBar.padding
|
||||
leftMargin: titleBar.padding + 8
|
||||
bottomMargin: root.fancyBorders ? 0 : titleBar.padding
|
||||
}
|
||||
spacing: 2
|
||||
|
||||
@@ -14,7 +14,7 @@ StyledOverlayWidget {
|
||||
anchors.centerIn: parent
|
||||
color: Appearance.m3colors.m3surfaceContainer
|
||||
radius: root.contentRadius
|
||||
property real padding: 16
|
||||
property real padding: 6
|
||||
implicitHeight: 600
|
||||
implicitWidth: 350
|
||||
|
||||
@@ -53,8 +53,28 @@ StyledOverlayWidget {
|
||||
}
|
||||
clip: true
|
||||
|
||||
VolumeDialogContent { isSink: true }
|
||||
VolumeDialogContent { isSink: false }
|
||||
PaddedVolumeDialogContent {
|
||||
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