mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-27 14:02:13 +00:00
Improve text color when sidebar color is light #106
This commit is contained in:
parent
5ebc888d42
commit
3b60f46002
1 changed files with 1 additions and 0 deletions
|
|
@ -626,6 +626,7 @@ function updateColors(textColHex, sideColHex, checkDarkMode = true) {
|
||||||
setRootColor("tab-active", buttonBgColHex);
|
setRootColor("tab-active", buttonBgColHex);
|
||||||
setRootColor("button-disabled", buttonBgColHex);
|
setRootColor("button-disabled", buttonBgColHex);
|
||||||
setRootColor("sidebar", sideColHex);
|
setRootColor("sidebar", sideColHex);
|
||||||
|
setRootColor("sidebar-text", isLight(sideColHex) ? "#000000" : "#FFFFFF");
|
||||||
|
|
||||||
if (checkDarkMode) checkDarkLightMode([textColHex, sideColHex]);
|
if (checkDarkMode) checkDarkLightMode([textColHex, sideColHex]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue