feat: give audio manaager a border, hide next/prev player when only a single or no players
This commit is contained in:
parent
98c0308a52
commit
baa9b002c7
2 changed files with 11 additions and 3 deletions
|
@ -9,6 +9,7 @@ import QtQuick.Effects
|
|||
import Quickshell.Services.Mpris
|
||||
|
||||
ColumnLayout {
|
||||
id: mprisWidget
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.fillWidth: true
|
||||
visible: Player.current ?? false
|
||||
|
@ -18,6 +19,7 @@ ColumnLayout {
|
|||
Layout.alignment: Qt.AlignHCenter
|
||||
color: "white"
|
||||
font.pixelSize: 18
|
||||
Layout.maximumWidth: mprisWidget.width
|
||||
}
|
||||
|
||||
Label {
|
||||
|
@ -25,6 +27,7 @@ ColumnLayout {
|
|||
Layout.alignment: Qt.AlignHCenter
|
||||
color: "white"
|
||||
font.pixelSize: 14
|
||||
Layout.maximumWidth: mprisWidget.width
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
|
@ -34,6 +37,7 @@ ColumnLayout {
|
|||
Layout.alignment: Qt.AlignLeft
|
||||
Layout.fillHeight: true
|
||||
Layout.preferredWidth: 50
|
||||
visible: Player.all.length > 1
|
||||
}
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
|
@ -54,6 +58,7 @@ ColumnLayout {
|
|||
Layout.alignment: Qt.AlignRight
|
||||
Layout.fillHeight: true
|
||||
Layout.preferredWidth: 50
|
||||
visible: Player.all.length > 1
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ PopupWindow {
|
|||
anchors.fill: parent
|
||||
onClicked: audioman.visible = false
|
||||
|
||||
Rectangle {
|
||||
BRectangle {
|
||||
id: display
|
||||
|
||||
x: lbar.width * 1.2
|
||||
|
@ -33,13 +33,15 @@ PopupWindow {
|
|||
|
||||
width: 500
|
||||
height: 600
|
||||
color: "transparent"
|
||||
radius: 10
|
||||
|
||||
Image {
|
||||
id: background
|
||||
anchors.fill: parent
|
||||
source: Player.current?.trackArtUrl ?? ""
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
visible: false
|
||||
anchors.margins: display.border.width - 1
|
||||
}
|
||||
|
||||
MultiEffect {
|
||||
|
@ -52,6 +54,7 @@ PopupWindow {
|
|||
blurMultiplier: 2
|
||||
blur: 1
|
||||
brightness: -0.15
|
||||
contrast: -0.35
|
||||
maskEnabled: true
|
||||
maskSource: mask
|
||||
}
|
||||
|
@ -66,7 +69,7 @@ PopupWindow {
|
|||
Rectangle {
|
||||
width: image.width
|
||||
height: image.height
|
||||
radius: 10
|
||||
radius: display.radius
|
||||
color: "black"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue