Introducing fragment shaders for image rounding.
This commit is contained in:
parent
8f951946ea
commit
b6379da96c
12 changed files with 193 additions and 31 deletions
|
|
@ -164,7 +164,7 @@ NBox {
|
|||
border.width: Math.max(1, Style.borderS * scaling)
|
||||
clip: true
|
||||
|
||||
NImageRounded {
|
||||
NImageCircled {
|
||||
id: trackArt
|
||||
visible: MediaService.trackArtUrl.toString() !== ""
|
||||
|
||||
|
|
@ -174,7 +174,6 @@ NBox {
|
|||
fallbackIcon: "music_note"
|
||||
borderColor: Color.mOutline
|
||||
borderWidth: Math.max(1, Style.borderS * scaling)
|
||||
imageRadius: width * 0.5
|
||||
}
|
||||
|
||||
// Fallback icon when no album art available
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ NBox {
|
|||
anchors.margins: Style.marginM * scaling
|
||||
spacing: Style.marginM * scaling
|
||||
|
||||
NImageRounded {
|
||||
NImageCircled {
|
||||
width: Style.baseWidgetSize * 1.25 * scaling
|
||||
height: Style.baseWidgetSize * 1.25 * scaling
|
||||
imagePath: Settings.data.general.avatarImage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue