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

15 lines
386 B
QML
Raw Normal View History

2020-10-19 19:00:43 +00:00
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"
2020-10-19 19:00:43 +00:00
}