Improve text color when sidebar color is light #106

This commit is contained in:
Julien 2021-11-12 20:57:10 +01:00 committed by GitHub
parent 5ebc888d42
commit 3b60f46002
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -626,6 +626,7 @@ function updateColors(textColHex, sideColHex, checkDarkMode = true) {
setRootColor("tab-active", buttonBgColHex);
setRootColor("button-disabled", buttonBgColHex);
setRootColor("sidebar", sideColHex);
setRootColor("sidebar-text", isLight(sideColHex) ? "#000000" : "#FFFFFF");
if (checkDarkMode) checkDarkLightMode([textColHex, sideColHex]);
}