commit 03f956b
Kelson Vibber
·
2023-09-21 01:03:57 +0000 UTC
parent 1ccd1b2
Explicitly support dark mode to fix mismatched colors in clients like Tusky
1 files changed,
+5,
-1
+5,
-1
1@@ -147,6 +147,10 @@ int token_del(const char *id)
2
3 const char *login_page = ""
4 "<!DOCTYPE html>\n"
5+"<html>\n"
6+"<head>\n"
7+"<style>:root {color-scheme: light dark}</style>\n"
8+"</head>\n"
9 "<body><h1>%s OAuth identify</h1>\n"
10 "<div style=\"background-color: red; color: white\">%s</div>\n"
11 "<form method=\"post\" action=\"https:/" "/%s/%s\">\n"
12@@ -156,7 +160,7 @@ const char *login_page = ""
13 "<input type=\"hidden\" name=\"cid\" value=\"%s\">\n"
14 "<input type=\"hidden\" name=\"state\" value=\"%s\">\n"
15 "<input type=\"submit\" value=\"OK\">\n"
16-"</form><p>%s</p></body>\n"
17+"</form><p>%s</p></body></html>\n"
18 "";
19
20 int oauth_get_handler(const xs_dict *req, const char *q_path,