Better look for NImageRounded (hide the ugly rounding behind the border)

This commit is contained in:
LemmyCook 2025-08-22 09:51:48 -04:00
parent 084ffa6b0d
commit 5054818ed7
2 changed files with 48 additions and 41 deletions

View file

@ -294,13 +294,14 @@ Loader {
// Animated avatar with glow effect or audio visualizer // Animated avatar with glow effect or audio visualizer
Rectangle { Rectangle {
width: 120 * scaling width: 108 * scaling
height: 120 * scaling height: 108 * scaling
radius: width * 0.5 radius: width * 0.5
color: Color.transparent color: Color.transparent
border.color: Color.mPrimary border.color: Color.mPrimary
border.width: Math.max(1, Style.borderL * scaling) border.width: Math.max(1, Style.borderL * scaling)
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
z: 10
// Circular audio visualizer when music is playing // Circular audio visualizer when music is playing
Loader { Loader {

View file

@ -20,15 +20,10 @@ Rectangle {
radius: scaledRadius radius: scaledRadius
anchors.margins: Style.marginXXS * scaling anchors.margins: Style.marginXXS * scaling
// Border
Rectangle { Rectangle {
anchors.fill: parent
radius: parent.radius
color: Color.transparent color: Color.transparent
border.color: parent.borderColor anchors.fill: parent
border.width: parent.borderWidth anchors.margins: borderWidth
z: 10
}
Image { Image {
id: img id: img
@ -68,4 +63,15 @@ Rectangle {
visible: fallbackIcon !== undefined && fallbackIcon !== "" && (imagePath === undefined || imagePath === "") visible: fallbackIcon !== undefined && fallbackIcon !== "" && (imagePath === undefined || imagePath === "")
z: 0 z: 0
} }
}
// Border
Rectangle {
anchors.fill: parent
radius: parent.radius
color: Color.transparent
border.color: parent.borderColor
border.width: parent.borderWidth
z: 10
}
} }