switch font to JetBrains Mono and fix disconnection message after logging in
This commit is contained in:
parent
7cde0f0d80
commit
76e4fc8fee
4 changed files with 15 additions and 1 deletions
|
@ -50,6 +50,7 @@ globalGatewayConnection.onclose = function(code) {
|
||||||
if (code === 4006) {
|
if (code === 4006) {
|
||||||
clearInterval(reconnectInterval);
|
clearInterval(reconnectInterval);
|
||||||
dispatchConnectionClose();
|
dispatchConnectionClose();
|
||||||
|
currentlyReconnecting = true; // NOTE: no
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (currentlyReconnecting || globalGatewayConnection.ws.readyState === 1) return;
|
if (currentlyReconnecting || globalGatewayConnection.ws.readyState === 1) return;
|
||||||
|
|
|
@ -19,10 +19,18 @@
|
||||||
background: var(--default-scrollbar-color);
|
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 {
|
body {
|
||||||
color: var(--default-text-color);
|
color: var(--default-text-color);
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
font-family: Noto Sans,-apple-system,BlinkMacSystemFont,sans-serif;
|
font-family: var(--default-font-family);
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.default-channel-styled-text {
|
.default-channel-styled-text {
|
||||||
|
font-family: var(--glyph-font-family);
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
filter: drop-shadow(2px 2px hsl(300, 60%, 25%));
|
filter: drop-shadow(2px 2px hsl(300, 60%, 25%));
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
@ -92,4 +93,5 @@
|
||||||
.default-user-styled-text {
|
.default-user-styled-text {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
font-family: var(--glyph-font-family);
|
||||||
}
|
}
|
|
@ -5,6 +5,9 @@
|
||||||
--default-text-color: hsl(0, 0%, 80%);
|
--default-text-color: hsl(0, 0%, 80%);
|
||||||
--darker-text-color: hsl(0, 0%, 65%);
|
--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(
|
--default-user-background: linear-gradient(
|
||||||
to bottom right,
|
to bottom right,
|
||||||
hsl(275, 35%, 40%),
|
hsl(275, 35%, 40%),
|
||||||
|
|
Loading…
Reference in a new issue