diff --git a/linphone-desktop/src/components/presence/Presence.cpp b/linphone-desktop/src/components/presence/Presence.cpp index d97620abb..c0d0f5689 100644 --- a/linphone-desktop/src/components/presence/Presence.cpp +++ b/linphone-desktop/src/components/presence/Presence.cpp @@ -64,7 +64,7 @@ QString Presence::getPresenceLevelIconName (const PresenceLevel &level) { return "led_red"; case White: return "led_white"; - default: - return ""; } + + return ""; } diff --git a/linphone-desktop/ui/views/App/Main/Contacts.qml b/linphone-desktop/ui/views/App/Main/Contacts.qml index d8029db91..36796e414 100644 --- a/linphone-desktop/ui/views/App/Main/Contacts.qml +++ b/linphone-desktop/ui/views/App/Main/Contacts.qml @@ -113,9 +113,9 @@ ColumnLayout { Text { Layout.fillWidth: true - color: ContactsStyle.contact.presenceStringColor + color: ContactsStyle.contact.presence.color elide: Text.ElideRight - font.pointSize: ContactsStyle.contact.presenceStringFontSize + font.pointSize: ContactsStyle.contact.presence.fontSize text: Presence.getPresenceStatusAsString($contact.presenceStatus) } } diff --git a/linphone-desktop/ui/views/App/Styles/Main/ContactsStyle.qml b/linphone-desktop/ui/views/App/Styles/Main/ContactsStyle.qml index 4c520f43f..46178dba3 100644 --- a/linphone-desktop/ui/views/App/Styles/Main/ContactsStyle.qml +++ b/linphone-desktop/ui/views/App/Styles/Main/ContactsStyle.qml @@ -25,8 +25,6 @@ QtObject { property int presenceLevelSize: 12 property int rightMargin: 25 property int spacing: 15 - property int presenceStringFontSize: 10 - property color presenceStringColor: Colors.w property QtObject backgroundColor: QtObject { property color normal: Colors.k @@ -43,6 +41,11 @@ QtObject { property int width: 5 } + property QtObject presence: QtObject { + property int fontSize: 10 + property color color: Colors.w + } + property QtObject username: QtObject { property color color: Colors.j property int fontSize: 9