Commit d4dacb83 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Use PreserveAspectFit for thumbnails instead of PreserveAspectCrop

This way we don't cut off parts of images and show the entire thing. The
background rectangle is changed to use Window background color so that
we use a consistent color.
parent 265456b1
......@@ -33,8 +33,9 @@ Controls.ItemDelegate {
margins: -1
radius: 2
color: Kirigami.Theme.textColor
opacity: 0.2
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: Kirigami.Theme.Window
color: Kirigami.Theme.backgroundColor
visible: modelData.itemType != Koko.Types.Folder
KQA.QImageItem {
......@@ -44,7 +45,7 @@ Controls.ItemDelegate {
height: width
smooth: true
image: modelData.thumbnail
fillMode: KQA.QImageItem.PreserveAspectCrop
fillMode: KQA.QImageItem.PreserveAspectFit
Rectangle {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment