2024-10-15 21:26:12 +02:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
2022-06-28 14:11:18 -04:00
|
|
|
import shared.controls 1.0
|
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
SVGImage {
|
|
|
|
id: root
|
2022-08-09 18:42:54 +03:00
|
|
|
width: visible ? 10 : 0
|
|
|
|
height: visible ? 10 : 0
|
2022-06-28 14:11:18 -04:00
|
|
|
|
|
|
|
property int trustStatus: Constants.trustStatus.unknown
|
|
|
|
|
|
|
|
source: {
|
|
|
|
switch(trustStatus) {
|
|
|
|
case Constants.trustStatus.trusted:
|
2024-10-15 21:26:12 +02:00
|
|
|
return Theme.svg("verified");
|
2022-06-28 14:11:18 -04:00
|
|
|
case Constants.trustStatus.untrustworthy:
|
2024-10-15 21:26:12 +02:00
|
|
|
return Theme.svg("untrustworthy");
|
2022-06-28 14:11:18 -04:00
|
|
|
default:
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|
2022-08-09 18:42:54 +03:00
|
|
|
}
|