Fix OpenWithDialog icon

This commit is contained in:
reionwong 2021-08-18 05:35:23 +08:00
parent c5eccdebc0
commit 4868a2e54c
3 changed files with 9 additions and 6 deletions

View file

@ -37,6 +37,10 @@ OpenWithDialog::OpenWithDialog(const QUrl &url, QQuickView *parent)
engine()->rootContext()->setContextProperty("launcher", FileLauncher::self()); engine()->rootContext()->setContextProperty("launcher", FileLauncher::self());
setSource(QUrl("qrc:/qml/Dialogs/OpenWithDialog.qml")); setSource(QUrl("qrc:/qml/Dialogs/OpenWithDialog.qml"));
QRect rect = geometry();
setMinimumSize(rect.size());
setMaximumSize(rect.size());
} }
QString OpenWithDialog::url() const QString OpenWithDialog::url() const

View file

@ -118,12 +118,11 @@ Item {
anchors.margins: FishUI.Units.smallSpacing anchors.margins: FishUI.Units.smallSpacing
spacing: FishUI.Units.smallSpacing spacing: FishUI.Units.smallSpacing
Image { FishUI.IconItem {
id: icon id: icon
source: "image://icontheme/" + model.icon Layout.fillHeight: true
width: 30 Layout.preferredWidth: height
height: width source: model.icon
sourceSize: Qt.size(width, height)
Layout.alignment: Qt.AlignLeft Layout.alignment: Qt.AlignLeft
} }

View file

@ -35,7 +35,7 @@ FishUI.Window {
title: qsTr("File Manager") title: qsTr("File Manager")
header.height: 36 + FishUI.Units.largeSpacing header.height: 36 + FishUI.Units.largeSpacing
background.opacity: 0.9 background.opacity: root.compositing ? 0.9 : 1.0
FishUI.WindowBlur { FishUI.WindowBlur {
view: root view: root