mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-07 08:40:44 +00:00
FIX: latest update broke text color in siedbar and menu
This commit is contained in:
parent
bd87cabdc0
commit
7db5024fc6
1 changed files with 13 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
let current = '1.2'
|
let current = '1.3'
|
||||||
|
|
||||||
/* css is injected so this works with untouched user.css from Dribbblish */
|
/* css is injected so this works with untouched user.css from Dribbblish */
|
||||||
/* dark theme */
|
/* dark theme */
|
||||||
|
|
@ -52,6 +52,17 @@ document.styleSheets[0].insertRule(`
|
||||||
.main-shuffleButton-button {
|
.main-shuffleButton-button {
|
||||||
order: unset !important;
|
order: unset !important;
|
||||||
}`)
|
}`)
|
||||||
|
document.styleSheets[0].insertRule(`
|
||||||
|
.main-rootlist-expandArrow:focus,
|
||||||
|
.main-rootlist-expandArrow:hover,
|
||||||
|
.main-rootlist-textWrapper:focus,
|
||||||
|
.main-rootlist-textWrapper:hover,
|
||||||
|
.main-contextMenu-menuHeading,
|
||||||
|
.main-contextMenu-menuItemButton,
|
||||||
|
.main-contextMenu-menuItemButton:not(.main-contextMenu-disabled):focus,
|
||||||
|
.main-contextMenu-menuItemButton:not(.main-contextMenu-disabled):hover {
|
||||||
|
color: var(--spice-sidebar-text) !important;
|
||||||
|
}`)
|
||||||
|
|
||||||
/* js */
|
/* js */
|
||||||
function waitForElement(els, func, timeout = 100) {
|
function waitForElement(els, func, timeout = 100) {
|
||||||
|
|
@ -175,7 +186,7 @@ DribbblishShared.configMenu.register();
|
||||||
DribbblishShared.configMenu.subItems.push(new Spicetify.Menu.Item(
|
DribbblishShared.configMenu.subItems.push(new Spicetify.Menu.Item(
|
||||||
"Dark mode",
|
"Dark mode",
|
||||||
systemDark,
|
systemDark,
|
||||||
(self) => { toggleDark(); }
|
(self) => { toggleDark(); self.isEnabled = !self.isEnabled; }
|
||||||
));
|
));
|
||||||
|
|
||||||
function updateColors(colHex) {
|
function updateColors(colHex) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue