Better look for NImageRounded (hide the ugly rounding behind the border)
This commit is contained in:
parent
084ffa6b0d
commit
5054818ed7
2 changed files with 48 additions and 41 deletions
|
|
@ -294,13 +294,14 @@ Loader {
|
|||
|
||||
// Animated avatar with glow effect or audio visualizer
|
||||
Rectangle {
|
||||
width: 120 * scaling
|
||||
height: 120 * scaling
|
||||
width: 108 * scaling
|
||||
height: 108 * scaling
|
||||
radius: width * 0.5
|
||||
color: Color.transparent
|
||||
border.color: Color.mPrimary
|
||||
border.width: Math.max(1, Style.borderL * scaling)
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
z: 10
|
||||
|
||||
// Circular audio visualizer when music is playing
|
||||
Loader {
|
||||
|
|
|
|||
|
|
@ -20,15 +20,10 @@ Rectangle {
|
|||
radius: scaledRadius
|
||||
anchors.margins: Style.marginXXS * scaling
|
||||
|
||||
// Border
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: parent.radius
|
||||
color: Color.transparent
|
||||
border.color: parent.borderColor
|
||||
border.width: parent.borderWidth
|
||||
z: 10
|
||||
}
|
||||
anchors.fill: parent
|
||||
anchors.margins: borderWidth
|
||||
|
||||
Image {
|
||||
id: img
|
||||
|
|
@ -68,4 +63,15 @@ Rectangle {
|
|||
visible: fallbackIcon !== undefined && fallbackIcon !== "" && (imagePath === undefined || imagePath === "")
|
||||
z: 0
|
||||
}
|
||||
}
|
||||
|
||||
// Border
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: parent.radius
|
||||
color: Color.transparent
|
||||
border.color: parent.borderColor
|
||||
border.width: parent.borderWidth
|
||||
z: 10
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue