From 1b2f47c0c08c5a77ca1b7e914a886cbf2bfd40d1 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 13 Sep 2018 11:49:01 +0200 Subject: [PATCH] Try a new status indicator in messaging --- customize.dist/src/less2/include/messenger.less | 12 ++++++++++-- customize.dist/translations/messages.js | 2 ++ www/contacts/messenger-ui.js | 4 +++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/customize.dist/src/less2/include/messenger.less b/customize.dist/src/less2/include/messenger.less index 98ee8c7ad..64b820336 100644 --- a/customize.dist/src/less2/include/messenger.less +++ b/customize.dist/src/less2/include/messenger.less @@ -176,17 +176,25 @@ //opacity: 0.7; //background-color: #777; - width: (@room-height - 6px); +/* width: (@room-height - 6px); top: 3px; bottom: 3px; left: 3px; border-radius: 100%; +*/ + width: 10px; + height: 10px; + top: 0; + right: 0; + border-bottom-left-radius: 100%; &.cp-app-contacts-online { //background-color: green; - background-color: white; + //background-color: white; + background-color: #c5ffa8; } &.cp-app-contacts-offline { + display: none; //background-color: red; } } diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index a4f2bf09b..805afa01c 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -385,6 +385,8 @@ define(function () { out.contacts_rooms = "Rooms"; out.contacts_leaveRoom = "Leave this room"; + out.contacts_online = "Another user from this room is online"; + // File manager out.fm_rootName = "Documents"; diff --git a/www/contacts/messenger-ui.js b/www/contacts/messenger-ui.js index e9a46809e..ae469902e 100644 --- a/www/contacts/messenger-ui.js +++ b/www/contacts/messenger-ui.js @@ -465,7 +465,9 @@ define([ title: Messages.contacts_leaveRoom }); - var status = h('span.cp-app-contacts-status'); + var status = h('span.cp-app-contacts-status', { + title: Messages.contacts_online + }); var rightCol = h('span.cp-app-contacts-right-col', [ h('span.cp-app-contacts-name', [room.name]), room.isFriendChat ? remove :