From 7db5024fc61ddd2d0991757b71e3b755f6cfb84f Mon Sep 17 00:00:00 2001 From: Julien Maille Date: Mon, 14 Jun 2021 22:56:13 +0200 Subject: [PATCH] FIX: latest update broke text color in siedbar and menu --- dribbblish-dynamic.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/dribbblish-dynamic.js b/dribbblish-dynamic.js index 78c35c9..06f610e 100644 --- a/dribbblish-dynamic.js +++ b/dribbblish-dynamic.js @@ -1,4 +1,4 @@ -let current = '1.2' +let current = '1.3' /* css is injected so this works with untouched user.css from Dribbblish */ /* dark theme */ @@ -52,6 +52,17 @@ document.styleSheets[0].insertRule(` .main-shuffleButton-button { 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 */ function waitForElement(els, func, timeout = 100) { @@ -175,7 +186,7 @@ DribbblishShared.configMenu.register(); DribbblishShared.configMenu.subItems.push(new Spicetify.Menu.Item( "Dark mode", systemDark, - (self) => { toggleDark(); } + (self) => { toggleDark(); self.isEnabled = !self.isEnabled; } )); function updateColors(colHex) {