status-desktop/ui/app/AppLayouts/Browser/FaviconImage.qml

15 lines
386 B
QML

import QtQuick 2.13
import "../../../shared"
import "../../../imports"
Image {
property var currentTab
id: faviconImage
width: 24
height: 24
sourceSize: Qt.size(width, height)
// TODO find a better default favicon
source: faviconImage.currentTab && !!faviconImage.currentTab.icon.toString() ? faviconImage.currentTab.icon : "../../img/compassActive.svg"
}