fix code text color & default minimal light theme

This commit is contained in:
RossAscends
2023-07-05 05:16:52 +09:00
parent deff2d24fb
commit b8f3a7cbe0
3 changed files with 25 additions and 2 deletions

View File

@@ -1338,7 +1338,7 @@ function setAvgBG() {
// Calculate complementary color based on background color
const complementaryHue = (h + 0.5) % 1;
const complementarySaturation = s > 0.5 ? s - 0.2 : s + 0.2;
const complementarySaturation = s > 0.5 ? s - 0.6 : s + 0.6;
const complementaryLuminance = l > 0.5 ? 0.2 : 0.8;
// Convert complementary color back to RGB