mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-07 16:52:00 +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,
|
||||||
.main-navBar-navBar a:hover span,
|
.main-navBar-navBar a:hover span,
|
||||||
.main-buddyFeed-activityMetadata a:hover {
|
.main-buddyFeed-activityMetadata a:hover {
|
||||||
color: var(--spice-button) !important;
|
color: var(--spice-shadow) !important;
|
||||||
}`)
|
}`)
|
||||||
|
|
||||||
document.styleSheets[0].insertRule(`
|
document.styleSheets[0].insertRule(`
|
||||||
|
|
@ -72,15 +72,6 @@ document.styleSheets[0].insertRule(`
|
||||||
}`)
|
}`)
|
||||||
|
|
||||||
/* js */
|
/* 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) {
|
function getAlbumInfo(uri) {
|
||||||
return Spicetify.CosmosAsync.get(`hm://album/v1/album-app/album/${uri}/desktop`);
|
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]) => {
|
waitForElement([`.main-rootlist-rootlistPlaylistsScrollNode ul[tabindex="0"]`], ([query]) => {
|
||||||
const fade = document.createElement("div");
|
const fade = document.createElement("div");
|
||||||
fade.id = "dribbblish-sidebar-fade-in";
|
fade.id = "dribbblish-sidebar-fade-in";
|
||||||
queries[0].append(fade);
|
query.append(fade);
|
||||||
});
|
});
|
||||||
|
|
||||||
waitForElement([
|
waitForElement([
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue