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

Function installPlayerControlIcons

theme.js:4456–4486  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4454 const mb = readNum(CCA_MARGIN_BOTTOM_KEY, CCA_DEFAULTS.marginBottom);
4455 const ml = readNum(CCA_MARGIN_LEFT_KEY, CCA_DEFAULTS.marginLeft);
4456 const css = `
4457 :root .Root__top-container .main-nowPlayingWidget-nowPlaying .main-coverSlotCollapsed-container .cover-art,
4458 :root .Root__top-container .main-nowPlayingWidget-nowPlaying .main-coverSlotCollapsed-container .VideoPlayer__container video {
4459 width: ${w2}px !important;
4460 height: ${h2}px !important;
4461 overflow: hidden;
4462 object-fit: cover;
4463 max-height: none;
4464 max-width: none;
4465 }
4466 .main-nowPlayingWidget-coverArtContainer {
4467 margin-bottom: ${mb}px !important;
4468 margin-left: ${ml}px !important;
4469 }
4470 `;
4471 updateStyle("glowify-comfy-cover-art", css);
4472 }
4473
4474 // src/settings/features/coverSwipe.ts
4475 function installCoverSwipe() {
4476 (() => {
4477 const anyWin = window;
4478 const STYLE_ID15 = "cs-cover-swipe";
4479 const TRACK_ID = "cs-track";
4480 const TRAVEL = 2;
4481 const DURATION = Math.round(300 * TRAVEL * 0.9);
4482 const SETTLE = 190;
4483 const TOTAL = DURATION + SETTLE;
4484 const SLIDE_END = (DURATION / TOTAL * 100).toFixed(2);
4485 const OVERSHOOT = 3.5;
4486 const FADE = 250;
4487 const CANVAS_SCALE = 1.1;
4488 const CANVAS_FADE = 500;
4489 const SAME_SONG_THRESHOLD = 3e3;

Callers 3

setPlayerControlIconsFunction · 0.85
applyAllSavedSettingsFunction · 0.85

Calls 5

updateStyleFunction · 0.85
getPlayerControlIconCssFunction · 0.85
applyPlayerControlIconsFunction · 0.85

Tested by

no test coverage detected