mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
30 lines
540 B
QML
30 lines
540 B
QML
import QtQuick 2.7
|
|
|
|
import Common 1.0
|
|
import Linphone 1.0
|
|
|
|
// ===================================================================
|
|
|
|
Icon {
|
|
property int level: -1
|
|
|
|
function _getColorString () {
|
|
if (level === Presence.Green) {
|
|
return 'green'
|
|
}
|
|
if (level === Presence.Orange) {
|
|
return 'orange'
|
|
}
|
|
if (level === Presence.Red) {
|
|
return 'red'
|
|
}
|
|
if (level === Presence.White) {
|
|
return 'white'
|
|
}
|
|
}
|
|
|
|
icon: {
|
|
var level = _getColorString()
|
|
return level ? 'led_' + level : ''
|
|
}
|
|
}
|