aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorGraham Sutherland <gsuberland@users.noreply.github.com>2024-01-27 23:54:07 +0000
committerGraham Sutherland <gsuberland@gmail.com>2024-01-27 23:59:34 +0000
commitcc708ea36d3983336c0ebaed6eba33c28d37e24f (patch)
treed372cd6ee6fb8f3b8af711cac2d0b75e712aaa2b /src/web
parent75543ab667cd8e62c38a5d3530a6783b3408fc15 (diff)
downloadslskd-cc708ea36d3983336c0ebaed6eba33c28d37e24f.tar.gz
Improve chat colours
Increase contrast in dark theme and add a subtle background to messages sent by the local user.
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Chat/Chat.css15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/web/src/components/Chat/Chat.css b/src/web/src/components/Chat/Chat.css
index 107c6474..92aea58c 100644
--- a/src/web/src/components/Chat/Chat.css
+++ b/src/web/src/components/Chat/Chat.css
@@ -1,3 +1,13 @@
+:root {
+ --slskd-chat-color: #0e6eb8;
+ --slskd-self-message-background-color: rgba(0, 0, 0, 0.03);
+}
+
+:root.dark {
+ --slskd-chat-color: #cce2ff;
+ --slskd-self-message-background-color: rgba(255, 255, 255, 0.03);
+}
+
.chat {
display: flex;
margin-top: 1rem;
@@ -76,14 +86,15 @@
.chat-message-time {
float:right;
- opacity: .5;
+ opacity: .65;
font-size: smaller;
font-variant: small-caps;
font-style: italic;
}
.chat-message-self {
- color: blue;
+ color: var(--slskd-chat-color);
+ background-color: var(--slskd-self-message-background-color);
}
.chat-input {