21 lines
500 B
QML
21 lines
500 B
QML
import QtQuick
|
|
import "../theme"
|
|
|
|
Image {
|
|
id: root
|
|
|
|
property bool isPowered: true
|
|
property bool isConnected: false
|
|
|
|
width: 16
|
|
height: 16
|
|
sourceSize.width: width
|
|
sourceSize.height: height
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
source: {
|
|
let base = "file:///usr/share/icons/" + Theme.panelIconDir + "/24x24/panel/"
|
|
return isConnected ? base + "bluetooth-paired.svg" : (isPowered ? base + "bluetooth-active.svg" : base + "bluetooth-disabled.svg")
|
|
}
|
|
}
|