switch font to JetBrains Mono and fix disconnection message after logging in

This commit is contained in:
hippoz 2021-09-06 19:29:44 +03:00
parent 7cde0f0d80
commit 76e4fc8fee
No known key found for this signature in database
GPG key ID: 7C52899193467641
4 changed files with 15 additions and 1 deletions

View file

@ -50,6 +50,7 @@ globalGatewayConnection.onclose = function(code) {
if (code === 4006) {
clearInterval(reconnectInterval);
dispatchConnectionClose();
currentlyReconnecting = true; // NOTE: no
return;
}
if (currentlyReconnecting || globalGatewayConnection.ws.readyState === 1) return;

View file

@ -19,10 +19,18 @@
background: var(--default-scrollbar-color);
}
@font-face {
font-family: 'JetBrains Mono';
src: url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/webfonts/JetBrainsMono-Regular.woff2') format('woff2'),
url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/ttf/JetBrainsMono-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
color: var(--default-text-color);
background-color: var(--background-color);
font-family: Noto Sans,-apple-system,BlinkMacSystemFont,sans-serif;
font-family: var(--default-font-family);
min-height: 100vh;
max-height: 100vh;
margin: 0px;

View file

@ -79,6 +79,7 @@
}
.default-channel-styled-text {
font-family: var(--glyph-font-family);
font-size: 24px;
filter: drop-shadow(2px 2px hsl(300, 60%, 25%));
user-select: none;
@ -92,4 +93,5 @@
.default-user-styled-text {
font-size: 24px;
user-select: none;
font-family: var(--glyph-font-family);
}

View file

@ -5,6 +5,9 @@
--default-text-color: hsl(0, 0%, 80%);
--darker-text-color: hsl(0, 0%, 65%);
--default-font-family: JetBrains Mono;
--glyph-font-family: Noto Sans,-apple-system,BlinkMacSystemFont,sans-serif;
--default-user-background: linear-gradient(
to bottom right,
hsl(275, 35%, 40%),