mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-25 04:52:10 +00:00
color tweaks
This commit is contained in:
parent
eb6fb146b0
commit
b404e47f65
2 changed files with 2 additions and 11 deletions
|
|
@ -52,7 +52,7 @@ document.styleSheets[0].insertRule(`
|
|||
.main-navBar-navBar a:hover,
|
||||
.main-navBar-navBar a:hover span,
|
||||
.main-buddyFeed-activityMetadata a:hover {
|
||||
color: var(--spice-button) !important;
|
||||
color: var(--spice-shadow) !important;
|
||||
}`)
|
||||
|
||||
document.styleSheets[0].insertRule(`
|
||||
|
|
@ -72,15 +72,6 @@ document.styleSheets[0].insertRule(`
|
|||
}`)
|
||||
|
||||
/* js */
|
||||
function waitForElement(els, func, timeout = 100) {
|
||||
const queries = els.map(el => document.querySelector(el));
|
||||
if (queries.every(a => a)) {
|
||||
func(queries);
|
||||
} else if (timeout > 0) {
|
||||
setTimeout(waitForElement, 300, els, func, --timeout);
|
||||
}
|
||||
}
|
||||
|
||||
function getAlbumInfo(uri) {
|
||||
return Spicetify.CosmosAsync.get(`hm://album/v1/album-app/album/${uri}/desktop`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ waitForElement([".Root__main-view"], ([mainView]) => {
|
|||
waitForElement([`.main-rootlist-rootlistPlaylistsScrollNode ul[tabindex="0"]`], ([query]) => {
|
||||
const fade = document.createElement("div");
|
||||
fade.id = "dribbblish-sidebar-fade-in";
|
||||
queries[0].append(fade);
|
||||
query.append(fade);
|
||||
});
|
||||
|
||||
waitForElement([
|
||||
|
|
|
|||
Loading…
Reference in a new issue