Commit 425648c2 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

slightly smaller icons in asset list

parent 59c41911
...@@ -250,7 +250,7 @@ Rectangle { ...@@ -250,7 +250,7 @@ Rectangle {
anchors.right: parent ? parent.right : undefined anchors.right: parent ? parent.right : undefined
property bool isItem : styleData.value !== "root" && styleData.value !== "" property bool isItem : styleData.value !== "root" && styleData.value !== ""
property string mimeType : isItem ? assetlist.getMimeType(styleData.value) : "" property string mimeType : isItem ? assetlist.getMimeType(styleData.value) : ""
height: assetText.implicitHeight + 8 height: assetText.implicitHeight
color: dragArea.containsMouse ? activePalette.highlight : "transparent" color: dragArea.containsMouse ? activePalette.highlight : "transparent"
Drag.active: isItem ? dragArea.drag.active : false Drag.active: isItem ? dragArea.drag.active : false
...@@ -263,15 +263,16 @@ Rectangle { ...@@ -263,15 +263,16 @@ Rectangle {
Row { Row {
anchors.fill:parent anchors.fill:parent
anchors.leftMargin: 2 anchors.leftMargin: 1
anchors.topMargin: 2 anchors.topMargin: 1
anchors.bottomMargin: 2 anchors.bottomMargin: 1
spacing: 2 spacing: 4
Image{ Image{
id: assetThumb id: assetThumb
anchors.verticalCenter: parent.verticalCenter
visible: assetDelegate.isItem visible: assetDelegate.isItem
property bool isFavorite: model == undefined || model.favorite === undefined ? false : model.favorite property bool isFavorite: model == undefined || model.favorite === undefined ? false : model.favorite
height: parent.height height: parent.height * 0.8
width: height width: height
source: 'image://asseticon/' + styleData.value source: 'image://asseticon/' + styleData.value
} }
......
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