Commit 6788f33e authored by Ronan Abhamon's avatar Ronan Abhamon

fix(app): coding style

parent 314899ac
...@@ -64,7 +64,7 @@ QString Presence::getPresenceLevelIconName (const PresenceLevel &level) { ...@@ -64,7 +64,7 @@ QString Presence::getPresenceLevelIconName (const PresenceLevel &level) {
return "led_red"; return "led_red";
case White: case White:
return "led_white"; return "led_white";
default:
return "";
} }
return "";
} }
...@@ -113,9 +113,9 @@ ColumnLayout { ...@@ -113,9 +113,9 @@ ColumnLayout {
Text { Text {
Layout.fillWidth: true Layout.fillWidth: true
color: ContactsStyle.contact.presenceStringColor color: ContactsStyle.contact.presence.color
elide: Text.ElideRight elide: Text.ElideRight
font.pointSize: ContactsStyle.contact.presenceStringFontSize font.pointSize: ContactsStyle.contact.presence.fontSize
text: Presence.getPresenceStatusAsString($contact.presenceStatus) text: Presence.getPresenceStatusAsString($contact.presenceStatus)
} }
} }
......
...@@ -25,8 +25,6 @@ QtObject { ...@@ -25,8 +25,6 @@ QtObject {
property int presenceLevelSize: 12 property int presenceLevelSize: 12
property int rightMargin: 25 property int rightMargin: 25
property int spacing: 15 property int spacing: 15
property int presenceStringFontSize: 10
property color presenceStringColor: Colors.w
property QtObject backgroundColor: QtObject { property QtObject backgroundColor: QtObject {
property color normal: Colors.k property color normal: Colors.k
...@@ -43,6 +41,11 @@ QtObject { ...@@ -43,6 +41,11 @@ QtObject {
property int width: 5 property int width: 5
} }
property QtObject presence: QtObject {
property int fontSize: 10
property color color: Colors.w
}
property QtObject username: QtObject { property QtObject username: QtObject {
property color color: Colors.j property color color: Colors.j
property int fontSize: 9 property int fontSize: 9
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment