mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Improve images resizing quality accross the board
- Using mipmap: true and smooth: true for images that are downscaled (avatar, icons, ...) - Using mipmap: false and smooth: true for images that are potentially upscaled (background, overview, ...)
This commit is contained in:
@@ -155,6 +155,7 @@ PanelWindow {
|
||||
anchors.centerIn: parent
|
||||
source: taskbar.getAppIcon(modelData)
|
||||
smooth: true
|
||||
mipmap: true
|
||||
visible: source.toString() !== ""
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,8 @@ WlSessionLock {
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
source: WallpaperManager.currentWallpaper !== "" ? WallpaperManager.currentWallpaper : ""
|
||||
cache: true
|
||||
smooth: false
|
||||
smooth: true
|
||||
mipmap: false
|
||||
visible: true // source for MultiEffect
|
||||
}
|
||||
|
||||
@@ -168,6 +169,8 @@ WlSessionLock {
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
visible: false
|
||||
asynchronous: true
|
||||
mipmap: true
|
||||
smooth: true
|
||||
}
|
||||
OpacityMask {
|
||||
anchors.fill: avatarImage
|
||||
|
||||
@@ -130,6 +130,7 @@ PanelWindow {
|
||||
anchors.margins: 4
|
||||
fillMode: Image.PreserveAspectFit
|
||||
smooth: true
|
||||
mipmap: true
|
||||
cache: false
|
||||
asynchronous: true
|
||||
sourceSize.width: 36
|
||||
|
||||
@@ -34,6 +34,7 @@ ShellRoot {
|
||||
source: wallpaperSource
|
||||
cache: true
|
||||
smooth: true
|
||||
mipmap: false
|
||||
visible: wallpaperSource !== "" // Show the original for FastBlur input
|
||||
}
|
||||
MultiEffect {
|
||||
|
||||
@@ -70,8 +70,8 @@ Rectangle {
|
||||
visible: false
|
||||
asynchronous: true
|
||||
cache: false
|
||||
sourceSize.width: 64
|
||||
sourceSize.height: 64
|
||||
smooth: true
|
||||
mipmap: true
|
||||
}
|
||||
|
||||
OpacityMask {
|
||||
|
||||
@@ -93,6 +93,7 @@ Rectangle {
|
||||
anchors.margins: 2
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
smooth: true
|
||||
mipmap: true
|
||||
cache: false
|
||||
asynchronous: true
|
||||
sourceSize.width: 60
|
||||
|
||||
@@ -60,8 +60,8 @@ Rectangle {
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
asynchronous: true
|
||||
cache: false
|
||||
sourceSize.width: 44
|
||||
sourceSize.height: 44
|
||||
smooth: true
|
||||
mipmap: true
|
||||
}
|
||||
maskSource: Rectangle {
|
||||
width: 44
|
||||
|
||||
@@ -137,8 +137,8 @@ PanelWindow {
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
asynchronous: true
|
||||
cache: true
|
||||
sourceSize.width: Math.min(width, 150)
|
||||
sourceSize.height: Math.min(height, 90)
|
||||
smooth: true
|
||||
mipmap: true
|
||||
}
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
Reference in New Issue
Block a user