show active states

This commit is contained in:
pypy
2020-01-13 00:53:37 +09:00
parent dc91cd9973
commit f234f882a1
3 changed files with 24 additions and 2 deletions

View File

@@ -7,6 +7,17 @@ This work is licensed under the terms of the MIT license.
For a copy, see <https://opensource.org/licenses/MIT>.
*/
.color-palettes {
background: #409EFF;
background: #67C23A;
background: #E6A23C;
background: #F56C6C;
background: #909399;
background: #FD9200;
background: #E6E6E6;
background: #C0C4CC;
}
.noty_layout {
word-break: break-all;
}
@@ -292,6 +303,10 @@ a {
background: #67C23A;
}
.x-friend-item>.avatar.inactive::after {
background: #FD9200;
}
.x-friend-item>.avatar.joinme::after {
background: #409EFF;
}
@@ -359,6 +374,10 @@ i.x-user-status.active {
background: #67C23A;
}
i.x-user-status.inactive {
background: #FD9200;
}
i.x-user-status.joinme {
background: #409EFF;
}

View File

@@ -3705,7 +3705,9 @@ CefSharp.BindObjectAsync(
$app.methods.userStatusClass = function (user) {
var style = {};
if (user) {
if (user.location === 'offline') {
if (user.state === 'active') {
style.inactive = true;
} else if (user.location === 'offline') {
style.offline = true;
} else if (user.status === 'active') {
style.active = true;

View File

@@ -884,7 +884,8 @@
<div>
<el-tooltip v-if="userDialog.ref.status" placement="top">
<template #content>
<span v-if="userDialog.ref.location === 'offline'">Offline</span>
<span v-if="userDialog.ref.state === 'active'">Active</span>
<span v-else-if="userDialog.ref.location === 'offline'">Offline</span>
<span v-else-if="userDialog.ref.status === 'active'">Active</span>
<span v-else-if="userDialog.ref.status === 'join me'">Join Me</span>
<span v-else-if="userDialog.ref.status === 'busy'">Busy</span>