V1.3! Fixed text colors of messages in dark mode

This commit is contained in:
abrendan 2023-12-02 00:18:17 +00:00
parent 83a6d186ea
commit a80e0b0abc
2 changed files with 14 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function onload(){
}
for (var i = 0; i < messages.length; i++){
document.getElementById("Message"+i).innerHTML = messages[i];
document.getElementById("Message"+i).style.color = "#000000";
document.getElementById("Message"+i).style.color = getComputedStyle(document.body).color;
}
})
}

View File

@ -67,6 +67,19 @@
body.dark-mode {
color: #ffffff; /* Light text color for contrast */
}
body.dark-mode .button {
color: #ffffff; /* Dark button background color */
}
body.dark-mode .button2 {
color: #ffffff; /* Dark button background color */
}
body.dark-mode .input {
color: #ffffff; /* Dark button background color */
}
/* You might want to customize other elements for dark mode, for example: */
.dark-mode #Main {
background-color: #333; /* Dark background for main content area */