Skip to content

Commit

Permalink
Fixed Speaker Tippy and Speaker Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
SyndiShanX committed Oct 24, 2023
1 parent 62a8d27 commit 6632c0f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SyndiShanX/user.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

/* Light Background Image */
.main-home-homeHeader, .x-entityHeader-overlay, .x-actionBarBackground-background, .main-contextMenu-menu, .main-navBar-mainNav .os-padding, .main-trackList-selected, #spicetify-playlist-list,
.main-dropDown-dropDown, textarea:not(#marketplace-import-text), input, .main-yourLibraryX-libraryRootlist, .view-homeShortcutsGrid-main, .main-nowPlayingView-section {
.main-dropDown-dropDown, textarea:not(#marketplace-import-text), input, .main-yourLibraryX-libraryRootlist, .view-homeShortcutsGrid-main, .main-nowPlayingView-section, .main-popper-container,
.main-devicePicker-devicesList, .hcuLp8V4uEEfWZ4k6aLV, .main-devicePicker-heading {
background-image: var(--bgImage)!important;
background-clip: border-box!important;
background-origin: padding-box!important;
Expand All @@ -22,7 +23,8 @@
}

/* Hover Background Image */
.main-card-card:hover, .main-contextMenu-menuItem:hover, #spicetify-playlist-list .main-useDropTarget-base:hover, .lyrics-lyrics-background, .main-trackList-trackListRow:hover {
.main-card-card:hover, .main-contextMenu-menuItem:hover, #spicetify-playlist-list .main-useDropTarget-base:hover, .lyrics-lyrics-background, .main-trackList-trackListRow:hover,
.hcuLp8V4uEEfWZ4k6aLV:hover, .main-devicePicker-heading:hover {
background-image: var(--bgDarkness1)!important;
background-clip: border-box!important;
background-origin: padding-box!important;
Expand Down
12 changes: 12 additions & 0 deletions zoomTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@
} else if (variant == 2) {
tippy.parentElement.id = ids;
setTimeout(function(){ fixTippyBoxes() }, 50);
} else if (variant == 3) {
tippy.id = ids;
setTimeout(function(){ fixTippyBoxes() }, 50);
}
}

async function fixTippyBoxes() {
if (document.getElementsByClassName("main-contextMenu-tippyWrapper")[0] != undefined) {
tippy = document.getElementsByClassName("main-contextMenu-tippyWrapper")[0].children['tippy-1']
if (/Listen from your speaker/ig.test(tippy.innerText)) {
setTippy(3, 'tippy-speaker')
}
}
tippy = document.getElementsByClassName("main-contextMenu-tippy")[0]
if (tippy != undefined) {
if (tippy.classList.length == 2) {
Expand Down Expand Up @@ -105,6 +114,9 @@ html {
.main-nowPlayingBar-container, #tippy-main, .main-navBar-mainNav .os-padding {
zoom: 117.5%!important;
}
#tippy-speaker {
top: 900px!important;
}
#tippy-spicetify {
position: relative!important;
top: -835px!important;
Expand Down

0 comments on commit 6632c0f

Please sign in to comment.