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

17 lines
379 B
QML
Raw Normal View History

2020-10-19 19:00:43 +00:00
import QtQuick 2.13
import "../../../../shared"
import utils 1.0
2020-10-19 19:00:43 +00:00
Image {
id: faviconImage
2020-10-19 19:00:43 +00:00
property var currentTab
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 : Style.svg("compassActive")
2020-10-19 19:00:43 +00:00
}