2020-10-19 15:00:43 -04:00
|
|
|
import QtQuick 2.13
|
2021-09-28 18:04:06 +03:00
|
|
|
|
2021-10-28 00:27:49 +03:00
|
|
|
import shared 1.0
|
2021-09-28 18:04:06 +03:00
|
|
|
import utils 1.0
|
2020-10-19 15:00:43 -04:00
|
|
|
|
|
|
|
Image {
|
2021-09-30 11:43:29 +02:00
|
|
|
id: faviconImage
|
|
|
|
|
2020-10-19 15:00:43 -04:00
|
|
|
property var currentTab
|
|
|
|
|
|
|
|
width: 24
|
|
|
|
height: 24
|
|
|
|
sourceSize: Qt.size(width, height)
|
|
|
|
// TODO find a better default favicon
|
2021-09-28 18:04:06 +03:00
|
|
|
source: faviconImage.currentTab && !!faviconImage.currentTab.icon.toString() ? faviconImage.currentTab.icon : Style.svg("compassActive")
|
2020-10-19 15:00:43 -04:00
|
|
|
}
|