Merge branch 'eben80-darkmode' into devel

pull/216/head
Hansi, dl9rdz 2021-10-07 21:48:41 +02:00
commit 1dc548d6f1
2 zmienionych plików z 19 dodań i 1 usunięć

Wyświetl plik

@ -455,7 +455,7 @@ const char *createSondeHubMap() {
strcpy(ptr, HTMLHEAD); strcat(ptr, "</head>");
HTMLBODY(ptr, "map.html");
if (!sonde.config.sondehub.active) {
strcat(ptr, "<div>NOTE: SondeHub uploading is not enabled, detected sonde will not be visable on map</div>");
strcat(ptr, "<div class=\"warning\">NOTE: SondeHub uploading is not enabled, detected sonde will not be visable on map</div>");
if ((*s->d.ser == 0) && ( !isnan(sonde.config.rxlat))) {
sprintf(ptr + strlen(ptr), "<iframe src=\"https://sondehub.org/#!mc=%f,%f&mz=8\" style=\"border:1px solid #00A3D3;border-radius:20px;height:95vh\"></iframe>", sonde.config.rxlat, sonde.config.rxlon);
} else {

Wyświetl plik

@ -337,3 +337,21 @@ p{
text-align: left;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: #333;
}
h2{
color: white;
}
table, th, td, .save, .topnav a.active {
color: white;
border: 1px solid grey;
border-collapse: collapse;
background-color: #333;
}
input, select, .tci, .warning {
color: white;
background-color: #333;
}
}