From dde0a06e56831cc77c75ec271e1232ac9408b211 Mon Sep 17 00:00:00 2001 From: Thomas Mathews Date: Fri, 6 Jan 2023 21:06:18 -0800 Subject: [PATCH] Notifications work with dms now --- css/styles.css | 6 +++--- css/vars.css | 3 ++- index.html | 6 ++++-- js/main.js | 15 +++++++++++---- js/model.js | 21 ++++++++++++++++++--- js/ui/dm.js | 5 ++++- js/ui/state.js | 12 ++++++++---- js/ui/util.js | 18 +++++++++++++----- 8 files changed, 63 insertions(+), 23 deletions(-) diff --git a/css/styles.css b/css/styles.css index 3b78440..a3781e3 100644 --- a/css/styles.css +++ b/css/styles.css @@ -566,9 +566,9 @@ code { font-size: var(--fsSmall); } .dm-group .count.active { - border: var(--clrNotification) solid 2px; + background: var(--clrChatBlue); font-weight: bold; - background: transparent; + color: white; } .event.dm { padding-bottom: 0; @@ -585,7 +585,7 @@ code { padding: 10px; } .event.dm.mine .wrap { - background: #0058ff; + background: var(--clrChatBlue); margin-left: auto; } .event.dm.mine .timestamp { diff --git a/css/vars.css b/css/vars.css index 6d4d156..abd2d39 100644 --- a/css/vars.css +++ b/css/vars.css @@ -13,7 +13,8 @@ --clrWarn: #fbc560; --clrLink: blue; --clrLinkVisited: purple; - --clrNotification: #20ff00; + --clrNotification: #0058ff; + --clrChatBlue: #0058ff; /* TODO I don't like these and simply did it for dark mode. To rename. */ --clrEvMsg: #f4f4f4; diff --git a/index.html b/index.html index 99c864a..4e371c9 100644 --- a/index.html +++ b/index.html @@ -73,10 +73,11 @@