Fix icons display
This commit is contained in:
parent
74b1a2efb4
commit
3c2c3b5051
6 changed files with 30 additions and 6 deletions
|
@ -48,6 +48,7 @@ Item {
|
|||
width: control.height * 0.64
|
||||
height: width
|
||||
sourceSize: Qt.size(width, height)
|
||||
smooth: false
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
|
@ -69,9 +69,9 @@ Item {
|
|||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: 200
|
||||
model: ListModel {}
|
||||
clip: true
|
||||
spacing: FishUI.Units.largeSpacing
|
||||
spacing: FishUI.Units.smallSpacing * 1.5
|
||||
ScrollBar.vertical: ScrollBar {}
|
||||
clip: true
|
||||
|
||||
Label {
|
||||
anchors.centerIn: parent
|
||||
|
@ -82,7 +82,7 @@ Item {
|
|||
delegate: Item {
|
||||
id: item
|
||||
width: ListView.view.width
|
||||
height: 45
|
||||
height: 30 + FishUI.Units.largeSpacing
|
||||
scale: mouseArea.pressed ? 0.95 : 1.0
|
||||
|
||||
Behavior on scale {
|
||||
|
@ -116,12 +116,12 @@ Item {
|
|||
RowLayout {
|
||||
anchors.fill: parent
|
||||
anchors.margins: FishUI.Units.smallSpacing
|
||||
spacing: FishUI.Units.largeSpacing
|
||||
spacing: FishUI.Units.smallSpacing
|
||||
|
||||
Image {
|
||||
id: icon
|
||||
source: "image://icontheme/" + model.icon
|
||||
width: item.height * 0.7
|
||||
width: 30
|
||||
height: width
|
||||
sourceSize: Qt.size(width, height)
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
|
|
|
@ -94,6 +94,7 @@ Item {
|
|||
sourceSize: Qt.size(width, height)
|
||||
source: "image://icontheme/" + model.iconName
|
||||
visible: !_image.visible
|
||||
smooth: false
|
||||
|
||||
ColorOverlay {
|
||||
anchors.fill: _icon
|
||||
|
@ -127,6 +128,7 @@ Item {
|
|||
source: model.thumbnail ? model.thumbnail : ""
|
||||
asynchronous: true
|
||||
cache: false
|
||||
smooth: false
|
||||
|
||||
// Because of the effect of OpacityMask.
|
||||
ColorOverlay {
|
||||
|
|
|
@ -86,6 +86,7 @@ Item {
|
|||
source: "image://icontheme/" + model.iconName
|
||||
visible: !_image.visible
|
||||
asynchronous: true
|
||||
smooth: false
|
||||
}
|
||||
|
||||
Image {
|
||||
|
|
|
@ -34,8 +34,10 @@ FishUI.DesktopMenu {
|
|||
anchors.left: parent.left
|
||||
anchors.leftMargin: FishUI.Units.largeSpacing
|
||||
source: FishUI.Theme.darkMode ? "qrc:/images/dark/grid.svg" : "qrc:/images/light/grid.svg"
|
||||
sourceSize: Qt.size(width, height)
|
||||
width: 22
|
||||
height: width
|
||||
smooth: false
|
||||
}
|
||||
|
||||
Text {
|
||||
|
@ -51,9 +53,11 @@ FishUI.DesktopMenu {
|
|||
anchors.right: parent.right
|
||||
anchors.rightMargin: FishUI.Units.largeSpacing * 1.5
|
||||
source: FishUI.Theme.darkMode ? "qrc:/images/dark/checked.svg" : "qrc:/images/light/checked.svg"
|
||||
sourceSize: Qt.size(width, height)
|
||||
width: 22
|
||||
height: width
|
||||
visible: settings.viewMethod === 1
|
||||
smooth: false
|
||||
}
|
||||
|
||||
onTriggered: settings.viewMethod = 1
|
||||
|
@ -68,8 +72,10 @@ FishUI.DesktopMenu {
|
|||
anchors.left: parent.left
|
||||
anchors.leftMargin: FishUI.Units.largeSpacing
|
||||
source: FishUI.Theme.darkMode ? "qrc:/images/dark/list.svg" : "qrc:/images/light/list.svg"
|
||||
sourceSize: Qt.size(width, height)
|
||||
width: 22
|
||||
height: width
|
||||
smooth: false
|
||||
}
|
||||
|
||||
Text {
|
||||
|
@ -85,9 +91,11 @@ FishUI.DesktopMenu {
|
|||
anchors.right: parent.right
|
||||
anchors.rightMargin: FishUI.Units.largeSpacing * 1.5
|
||||
source: FishUI.Theme.darkMode ? "qrc:/images/dark/checked.svg" : "qrc:/images/light/checked.svg"
|
||||
sourceSize: Qt.size(width, height)
|
||||
width: 22
|
||||
height: width
|
||||
visible: settings.viewMethod === 0
|
||||
smooth: false
|
||||
}
|
||||
|
||||
onTriggered: settings.viewMethod = 0
|
||||
|
@ -104,8 +112,10 @@ FishUI.DesktopMenu {
|
|||
anchors.left: parent.left
|
||||
anchors.leftMargin: FishUI.Units.largeSpacing
|
||||
source: FishUI.Theme.darkMode ? "qrc:/images/dark/order_by_name.svg" : "qrc:/images/light/order_by_name.svg"
|
||||
sourceSize: Qt.size(width, height)
|
||||
width: 22
|
||||
height: width
|
||||
smooth: false
|
||||
}
|
||||
|
||||
Text {
|
||||
|
@ -121,9 +131,11 @@ FishUI.DesktopMenu {
|
|||
anchors.right: parent.right
|
||||
anchors.rightMargin: FishUI.Units.largeSpacing * 1.5
|
||||
source: FishUI.Theme.darkMode ? "qrc:/images/dark/up.svg" : "qrc:/images/light/up.svg"
|
||||
sourceSize: Qt.size(width, height)
|
||||
height: width
|
||||
width: 22
|
||||
visible: settings.orderBy === 0
|
||||
smooth: false
|
||||
}
|
||||
|
||||
onTriggered: settings.orderBy = 0
|
||||
|
@ -138,8 +150,10 @@ FishUI.DesktopMenu {
|
|||
anchors.left: parent.left
|
||||
anchors.leftMargin: FishUI.Units.largeSpacing
|
||||
source: FishUI.Theme.darkMode ? "qrc:/images/dark/date.svg" : "qrc:/images/light/date.svg"
|
||||
sourceSize: Qt.size(width, height)
|
||||
width: 22
|
||||
height: width
|
||||
smooth: false
|
||||
}
|
||||
|
||||
Text {
|
||||
|
@ -155,9 +169,11 @@ FishUI.DesktopMenu {
|
|||
anchors.right: parent.right
|
||||
anchors.rightMargin: FishUI.Units.largeSpacing * 1.5
|
||||
source: FishUI.Theme.darkMode ? "qrc:/images/dark/up.svg" : "qrc:/images/light/up.svg"
|
||||
sourceSize: Qt.size(width, height)
|
||||
width: 22
|
||||
height: width
|
||||
visible: settings.orderBy === 1
|
||||
smooth: false
|
||||
}
|
||||
|
||||
onTriggered: settings.orderBy = 1
|
||||
|
@ -172,8 +188,10 @@ FishUI.DesktopMenu {
|
|||
anchors.left: parent.left
|
||||
anchors.leftMargin: FishUI.Units.largeSpacing
|
||||
source: FishUI.Theme.darkMode ? "qrc:/images/dark/size.svg" : "qrc:/images/light/size.svg"
|
||||
sourceSize: Qt.size(width, height)
|
||||
width: 22
|
||||
height: width
|
||||
smooth: false
|
||||
}
|
||||
|
||||
Text {
|
||||
|
@ -189,9 +207,11 @@ FishUI.DesktopMenu {
|
|||
anchors.right: parent.right
|
||||
anchors.rightMargin: FishUI.Units.largeSpacing * 1.5
|
||||
source: FishUI.Theme.darkMode ? "qrc:/images/dark/up.svg" : "qrc:/images/light/up.svg"
|
||||
sourceSize: Qt.size(width, height)
|
||||
width: 22
|
||||
height: width
|
||||
visible: settings.orderBy === 2
|
||||
smooth: false
|
||||
}
|
||||
|
||||
onTriggered: settings.orderBy = 2
|
||||
|
|
|
@ -104,7 +104,7 @@ ListView {
|
|||
// source: model.iconPath ? model.iconPath : "image://icontheme/" + model.iconName
|
||||
source: "qrc:/images/" + (FishUI.Theme.darkMode || _item.checked ? "dark/" : "light/") + model.iconPath
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
smooth: true
|
||||
smooth: false
|
||||
}
|
||||
|
||||
Label {
|
||||
|
|
Loading…
Reference in a new issue