fixed album image on bar media
This commit is contained in:
parent
3aa724ee1a
commit
ef67a8da63
1 changed files with 2 additions and 14 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import Quickshell.Widgets
|
import Quickshell.Widgets
|
||||||
|
|
@ -38,7 +38,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Album art image
|
// Album art image
|
||||||
Rectangle {
|
ClippingRectangle {
|
||||||
id: albumArtwork
|
id: albumArtwork
|
||||||
width: 20 * Theme.scale(Screen)
|
width: 20 * Theme.scale(Screen)
|
||||||
height: 20 * Theme.scale(Screen)
|
height: 20 * Theme.scale(Screen)
|
||||||
|
|
@ -60,18 +60,6 @@ Item {
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
source: MusicManager.trackArtUrl
|
source: MusicManager.trackArtUrl
|
||||||
visible: source.toString() !== ""
|
visible: source.toString() !== ""
|
||||||
|
|
||||||
// Rounded corners using layer
|
|
||||||
layer.enabled: true
|
|
||||||
layer.effect: MultiEffect {
|
|
||||||
maskEnabled: true
|
|
||||||
maskSource: Rectangle {
|
|
||||||
width: albumArt.width
|
|
||||||
height: albumArt.height
|
|
||||||
radius: albumArt.width / 2 // circle
|
|
||||||
visible: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback icon
|
// Fallback icon
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue