commit f4564e81f2a57ce4383b5959f0e9491d5cfe3ee9
parent 6a1ec23321d573d792e70ad6c185545f8d7843f8
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 23 May 2023 18:42:42 -0700
improve live-indicator
Diffstat:
3 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/pkg/web/handlers/api/v1/messages.qtpl b/pkg/web/handlers/api/v1/messages.qtpl
@@ -177,7 +177,7 @@
.notif, .notif:hover { color: #e74c3c; }
#msg-err { background-color: #8f2d2d; color: #ffffff; padding: 1px 5px 2px 5px; display: block; text-decoration: none; }
#http-alive-indicator {
- background-color: #fafa6e;
+ background-color: #00918d;
width: 20px;
height: 20px;
position: absolute;
diff --git a/pkg/web/handlers/api/v1/messages.qtpl.go b/pkg/web/handlers/api/v1/messages.qtpl.go
@@ -235,7 +235,7 @@ func StreamGenerateStyle(qw422016 *qt422016.Writer, AuthUser *database.User, Dat
.notif, .notif:hover { color: #e74c3c; }
#msg-err { background-color: #8f2d2d; color: #ffffff; padding: 1px 5px 2px 5px; display: block; text-decoration: none; }
#http-alive-indicator {
- background-color: #fafa6e;
+ background-color: #00918d;
width: 20px;
height: 20px;
position: absolute;
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -4928,18 +4928,8 @@ func ChatStreamMessagesHandler(c echo.Context) error {
sub := database.MsgPubSub.Subscribe(authorizedChannels)
defer sub.Close()
- clrs := []string{
- "#fafa6e",
- "#bdea75",
- "#86d780",
- "#54c18a",
- "#23aa8f",
- "#00918d",
- "#007882",
- "#1f5f70",
- "#2a4858",
- }
- clrIdx := 1
+ clrs := []string{"#00918d", "#1f5f70"}
+ clrIdx := 0
i := 0
Loop: