mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-26 00:08:13 +00:00
Add contact URL. Change unread message count design in chat. Add page text about missing features when using third party SIP account. Add Translation link for contribution in about. Fix history view. Add delay of 500ms on message search. Fix unresponsive check update button in settings. Fix wrong characters in record name. # Conflicts: # linphone-app/cmake_builder/linphone_package/CMakeLists.txt
45 lines
1.1 KiB
QML
45 lines
1.1 KiB
QML
import QtQuick 2.7
|
|
|
|
import Common 1.0
|
|
import Linphone.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
Item{
|
|
id: messageCounter
|
|
property bool showOnlyNumber: false
|
|
property int count: 0
|
|
property alias icon: backgroundIcon.icon
|
|
property alias iconSize: amountIcon.iconSize
|
|
property int pointSize: MessageCounterStyle.text.pointSize
|
|
|
|
visible: messageCounter.count > 0
|
|
|
|
height: showOnlyNumber ? amountIcon.height : backgroundIcon.height
|
|
width: showOnlyNumber ? amountIcon.width : backgroundIcon.width
|
|
|
|
Icon {
|
|
id: backgroundIcon
|
|
icon: 'chat_count'
|
|
iconSize: MessageCounterStyle.iconSize.message
|
|
visible: !messageCounter.showOnlyNumber
|
|
}
|
|
Icon {
|
|
id: amountIcon
|
|
anchors {
|
|
horizontalCenter: parent.right
|
|
verticalCenter: parent.bottom
|
|
}
|
|
|
|
icon: 'chat_amount'
|
|
iconSize: MessageCounterStyle.iconSize.amount
|
|
visible: messageCounter.count > 0
|
|
|
|
Text {
|
|
anchors.centerIn: parent
|
|
color: MessageCounterStyle.text.color
|
|
font.pointSize: messageCounter.pointSize
|
|
text: (messageCounter.count>99 ? '+' : messageCounter.count)
|
|
}
|
|
}
|
|
}
|