Dark CSS option

FossilOrigin-Name: dc7e751b072c427f5f858d91ce378cccb54846f154a96b119ed5a18111b90ec7
This commit is contained in:
me@ow.nekobit.net 2022-04-05 23:43:49 +00:00
parent 9312828731
commit 179ec7d0cb
2 changed files with 2 additions and 1 deletions

View file

@ -74,6 +74,7 @@ void render_base_page(struct base_page* page, struct session* ssn, mastodont_t*
int len = easprintf(&data, data_index_html,
L10N[locale][L10N_APP_NAME],
ssn->config.theme,
ssn->config.themeclr ? "-dark" : "",
config_url_prefix,
L10N[locale][L10N_APP_NAME],
login_string,

View file

@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>%s</title>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" type="text/css" href="/%s.css">
<link rel="stylesheet" type="text/css" href="/%s%s.css">
</head>
<body>
<div id="display">