mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Explicitly support dark mode to fix mismatched colors in clients like Tusky
This commit is contained in:
parent
1ccd1b2a1a
commit
03f956b14e
1 changed files with 5 additions and 1 deletions
|
@ -147,6 +147,10 @@ int token_del(const char *id)
|
||||||
|
|
||||||
const char *login_page = ""
|
const char *login_page = ""
|
||||||
"<!DOCTYPE html>\n"
|
"<!DOCTYPE html>\n"
|
||||||
|
"<html>\n"
|
||||||
|
"<head>\n"
|
||||||
|
"<style>:root {color-scheme: light dark}</style>\n"
|
||||||
|
"</head>\n"
|
||||||
"<body><h1>%s OAuth identify</h1>\n"
|
"<body><h1>%s OAuth identify</h1>\n"
|
||||||
"<div style=\"background-color: red; color: white\">%s</div>\n"
|
"<div style=\"background-color: red; color: white\">%s</div>\n"
|
||||||
"<form method=\"post\" action=\"https:/" "/%s/%s\">\n"
|
"<form method=\"post\" action=\"https:/" "/%s/%s\">\n"
|
||||||
|
@ -156,7 +160,7 @@ const char *login_page = ""
|
||||||
"<input type=\"hidden\" name=\"cid\" value=\"%s\">\n"
|
"<input type=\"hidden\" name=\"cid\" value=\"%s\">\n"
|
||||||
"<input type=\"hidden\" name=\"state\" value=\"%s\">\n"
|
"<input type=\"hidden\" name=\"state\" value=\"%s\">\n"
|
||||||
"<input type=\"submit\" value=\"OK\">\n"
|
"<input type=\"submit\" value=\"OK\">\n"
|
||||||
"</form><p>%s</p></body>\n"
|
"</form><p>%s</p></body></html>\n"
|
||||||
"";
|
"";
|
||||||
|
|
||||||
int oauth_get_handler(const xs_dict *req, const char *q_path,
|
int oauth_get_handler(const xs_dict *req, const char *q_path,
|
||||||
|
|
Loading…
Reference in a new issue