MCPcopy Create free account
hub / github.com/NMWplays/Glowify / Stepper

Function Stepper

theme.js:6395–6438  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

6393@media (prefers-reduced-motion: reduce) {
6394 html.${PLAYING_CLASS} [class*="cover-art"], html.${PLAYING_CLASS} .cs-face { animation: none !important; }
6395}`;
6396 }
6397 function installPlayState() {
6398 const win = window;
6399 if (win[PLAY_STATE_KEY]) return;
6400 win[PLAY_STATE_KEY] = true;
6401 const sync = () => {
6402 const playing = Boolean(win.Spicetify?.Player?.isPlaying?.());
6403 document.documentElement.classList.toggle(PLAYING_CLASS, playing);
6404 };
6405 sync();
6406 win.Spicetify?.Player?.addEventListener?.("onplaypause", sync);
6407 setInterval(sync, 1e3);
6408 }
6409 function applyCss3() {
6410 updateStyle(STYLE_ID5, buildCss());
6411 }
6412 function setVinyl(surface, mode) {
6413 localStorage.setItem(VINYL_SURFACES[surface].key, mode === "on" ? "on" : "off");
6414 applyCss3();
6415 }
6416 function setVinylSpeed(seconds) {
6417 localStorage.setItem(VINYL_SPEED_KEY, String(seconds));
6418 applyCss3();
6419 }
6420 function resetVinyl() {
6421 for (const surface of Object.keys(VINYL_SURFACES)) {
6422 localStorage.setItem(VINYL_SURFACES[surface].key, "off");
6423 }
6424 localStorage.setItem(VINYL_SPEED_KEY, String(VINYL_SPEED_DEFAULT));
6425 applyCss3();
6426 }
6427 function ensureVinylApplied() {
6428 installPlayState();
6429 applyCss3();
6430 }
6431
6432 // src/settings/features/localFilesCard.ts
6433 var STYLE_ID6 = "glowify-local-files-style";
6434 var LOCAL_FILES_TRANSPARENT_KEY = "glowify-local-files-transparent";
6435 var LOCAL_FILES_CARD = ".KmN1Y8bq8eC6k8TX";
6436 function applyCss4() {
6437 const on = readLS(LOCAL_FILES_TRANSPARENT_KEY, "off") === "on";
6438 updateStyle(
6439 STYLE_ID6,
6440 on ? `${LOCAL_FILES_CARD} {
6441 background-color: transparent !important;

Callers

nothing calls this directly

Calls 2

clampFunction · 0.85
commitFunction · 0.85

Tested by

no test coverage detected