hacker theme font is bedstead

main
Bob Mottram 2020-05-25 12:33:37 +01:00
parent 1fb272f0d9
commit a6b395c068
7 changed files with 48 additions and 5 deletions

View File

@ -1741,11 +1741,14 @@ class PubServer(BaseHTTPRequestHandler):
# get fonts
if self.path.startswith('/fonts/'):
fontStr = self.path.split('/fonts/')[1]
if fontsStr.endswith('.ttf') or \
if fontsStr.endswith('.otf') or \
fontsStr.endswith('.ttf') or \
fontsStr.endswith('.woff') or \
fontsStr.endswith('.woff2'):
if fontsStr.endswith('.ttf'):
fontType = 'application/x-font-ttf'
if fontsStr.endswith('.otf'):
fontType = 'application/x-font-opentype'
elif fontsStr.endswith('.ttf'):
fontType = 'application/x-font-truetype'
elif fontsStr.endswith('.woff'):
fontType = 'application/font-woff'
else:

View File

@ -42,6 +42,14 @@
--timeline-border-radius: 30px;
}
@font-face {
font-family: 'Bedstead';
font-style: normal;
font-weight: normal;
font-display: swap;
src: url('./fonts/bedstead.otf') format('opentype');
}
body, html {
background-color: var(--main-bg-color);
color: var(--main-fg-color);

View File

@ -21,6 +21,14 @@
--button-selected: #666;
}
@font-face {
font-family: 'Bedstead';
font-style: normal;
font-weight: normal;
font-display: swap;
src: url('./fonts/bedstead.otf') format('opentype');
}
body, html {
background-color: var(--main-bg-color);
color: var(--main-fg-color);

View File

@ -19,6 +19,14 @@
--form-border-radius: 30px;
}
@font-face {
font-family: 'Bedstead';
font-style: normal;
font-weight: normal;
font-display: swap;
src: url('./fonts/bedstead.otf') format('opentype');
}
body, html {
background-color: var(--main-bg-color);
color: var(--main-fg-color);

View File

@ -42,6 +42,14 @@
--timeline-border-radius: 30px;
}
@font-face {
font-family: 'Bedstead';
font-style: normal;
font-weight: normal;
font-display: swap;
src: url('./fonts/bedstead.otf') format('opentype');
}
body, html {
background-color: var(--main-bg-color);
color: var(--main-fg-color);
@ -272,7 +280,7 @@ a:link {
.gitpatch {
width: 90%;
font-family: monospace;
font-family: 'monospace';
}
.container p.administeredby {

View File

@ -20,6 +20,14 @@
--button-selected: #666;
}
@font-face {
font-family: 'Bedstead';
font-style: normal;
font-weight: normal;
font-display: swap;
src: url('./fonts/bedstead.otf') format('opentype');
}
body, html {
background-color: var(--main-bg-color);
color: var(--main-fg-color);

View File

@ -151,7 +151,7 @@ def setThemeHacker(baseDir: str):
"button-text": "green",
"button-corner-radius": "4px",
"timeline-border-radius": "4px",
"*font-family": "'monospace'",
"*font-family": "'Bedstead'",
"background-color: #554;": "background-color: #062200;",
"color: #FFFFFE;": "color: green;",
"calendar-bg-color": "black",