Merge branch 'main' into paginate-all-the-things

This commit is contained in:
Kendall Garner 2022-07-14 17:48:52 -04:00
commit 42fd24c69b
No known key found for this signature in database
GPG key ID: 18D2767419676C87
15 changed files with 1644 additions and 1449 deletions

View file

@ -373,7 +373,8 @@ export class BrowserWindow {
* @yields {object} Electron browser window * @yields {object} Electron browser window
*/ */
async createWindow(): Promise<Electron.BrowserWindow> { async createWindow(): Promise<Electron.BrowserWindow> {
this.clientPort = await getPort({ port: 9000 }); const envPort = process.env?.CIDER_PORT || '9000'
this.clientPort = await getPort({ port: parseInt(envPort, 10) || 9000 });
BrowserWindow.verifyFiles(); BrowserWindow.verifyFiles();
this.StartWatcher(utils.getPath('themes')); this.StartWatcher(utils.getPath('themes'));

View file

@ -16,10 +16,10 @@ import {utils} from './utils';
* @see {@link https://github.com/ciderapp/Cider/wiki/Plugins|Documentation} * @see {@link https://github.com/ciderapp/Cider/wiki/Plugins|Documentation}
*/ */
export class Plugins { export class Plugins {
private static PluginMap: any = {};
private basePluginsPath = path.join(__dirname, '../plugins'); private basePluginsPath = path.join(__dirname, '../plugins');
private userPluginsPath = path.join(electron.app.getPath('userData'), 'Plugins'); private userPluginsPath = path.join(electron.app.getPath('userData'), 'Plugins');
private readonly pluginsList: any = {}; private readonly pluginsList: any = {};
private static PluginMap: any = {};
constructor() { constructor() {
this.pluginsList = this.getPlugins(); this.pluginsList = this.getPlugins();

View file

@ -26,6 +26,9 @@ export class utils {
}, },
previous: () => { previous: () => {
bw.win.webContents.executeJavaScript("MusicKitInterop.previous()") bw.win.webContents.executeJavaScript("MusicKitInterop.previous()")
},
seek: (seconds: number) => {
bw.win.webContents.executeJavaScript(`MusicKit.getInstance().seekToTime(${seconds})`)
} }
} }
/** /**

View file

@ -76,10 +76,6 @@ ipcMain.on("nowPlayingItemDidChange", (_event, attributes) => {
CiderPlug.callPlugins("onNowPlayingItemDidChange", attributes); CiderPlug.callPlugins("onNowPlayingItemDidChange", attributes);
}); });
ipcMain.on("nowPlayingItemDidChangeLastFM", (_event, attributes) => {
CiderPlug.callPlugin("lastfm.js", "nowPlayingItemDidChangeLastFM", attributes);
})
app.on("before-quit", () => { app.on("before-quit", () => {
CiderPlug.callPlugins("onBeforeQuit"); CiderPlug.callPlugins("onBeforeQuit");
console.warn(`${app.getName()} exited.`); console.warn(`${app.getName()} exited.`);

View file

@ -6,7 +6,10 @@ export default class mpris {
* Private variables for interaction in plugins * Private variables for interaction in plugins
*/ */
private static utils: any; private static utils: any;
/**
* MPRIS Service
*/
private static player: Player.Player;
/** /**
* Base Plugin Details (Eventually implemented into a GUI in settings) * Base Plugin Details (Eventually implemented into a GUI in settings)
*/ */
@ -15,30 +18,17 @@ export default class mpris {
public version: string = '1.0.0'; public version: string = '1.0.0';
public author: string = 'Core'; public author: string = 'Core';
/**
* MPRIS Service
*/
private static player: Player.Player;
private static mprisEvents: Object = {
"playpause": "playPause",
"play": "play",
"pause": "pause",
"next": "next",
"previous": "previous",
}
/******************************************************************************************* /*******************************************************************************************
* Private Methods * Private Methods
* ****************************************************************************************/ * ****************************************************************************************/
/** /**
* Runs a media event * Runs on plugin load (Currently run on application start)
* @param type - pausePlay, next, previous
* @private
*/ */
private static runMediaEvent(type: string) { constructor(utils: any) {
// console.debug(`[Plugin][${this.name}] ${type}.`); mpris.utils = utils
mpris.utils.getWindow().webContents.executeJavaScript(`MusicKitInterop.${type}()`).catch(console.error)
console.debug(`[Plugin][${mpris.name}] Loading Complete.`);
} }
/** /**
@ -54,7 +44,6 @@ export default class mpris {
} }
} }
/** /**
* Connects to MPRIS Service * Connects to MPRIS Service
*/ */
@ -63,29 +52,49 @@ export default class mpris {
const player = Player({ const player = Player({
name: 'cider', name: 'cider',
identity: 'Cider', identity: 'Cider',
supportedUriSchemes: [],
supportedMimeTypes: [],
supportedInterfaces: ['player'] supportedInterfaces: ['player']
}); });
console.debug(`[Plugin][${mpris.name}] Successfully connected.`); console.debug(`[${mpris.name}:connect] Successfully connected.`);
const pos_atr = {durationInMillis: 0}; const renderer = mpris.utils.getWindow().webContents
player.getPosition = function () { const loopType: { [key: string]: number; } = {
const durationInMicro = pos_atr.durationInMillis * 1000; 'none': 0,
const percentage = parseFloat("0") || 0; 'track': 1,
return durationInMicro * percentage; 'playlist': 2,
} }
for (const [key, value] of Object.entries(mpris.mprisEvents)) { player.on('next', () => mpris.utils.playback.next())
player.on(key, function () { player.on('previous', () => mpris.utils.playback.previous())
mpris.runMediaEvent(value) player.on('playpause', () => mpris.utils.playback.playPause())
}); player.on('play', () => mpris.utils.playback.play())
} player.on('pause', () => mpris.utils.playback.pause())
player.on('quit', () => mpris.utils.getApp().exit())
player.on('position', (args: { position: any; }) => mpris.utils.playback.seek(args.position / 1000 / 1000))
player.on('loopStatus', (status: string) => renderer.executeJavaScript(`app.mk.repeatMode = ${loopType[status.toLowerCase()]}`))
player.on('shuffle', () => renderer.executeJavaScript('app.mk.shuffleMode = (app.mk.shuffleMode === 0) ? 1 : 0'))
player.on('quit', function () { mpris.utils.getIPCMain().on('mpris:playbackTimeDidChange', (event: any, time: number) => {
process.exit(); player.getPosition = () => time;
}); })
mpris.utils.getIPCMain().on('repeatModeDidChange', (_e: any, mode: number) => {
switch (mode) {
case 0:
player.loopStatus = Player.LOOP_STATUS_NONE;
break;
case 1:
player.loopStatus = Player.LOOP_STATUS_TRACK;
break;
case 2:
player.loopStatus = Player.LOOP_STATUS_PLAYLIST;
break;
}
})
mpris.utils.getIPCMain().on('shuffleModeDidChange', (_e: any, mode: number) => {
player.shuffle = mode === 1
})
mpris.player = player; mpris.player = player;
} }
@ -93,9 +102,9 @@ export default class mpris {
/** /**
* Update M.P.R.I.S Player Attributes * Update M.P.R.I.S Player Attributes
*/ */
private static updatePlayer(attributes: any) { private static updateMetaData(attributes: any) {
const MetaData = { mpris.player.metadata = {
'mpris:trackid': mpris.player.objectPath(`track/${attributes.playParams.id.replace(/[.]+/g, "")}`), 'mpris:trackid': mpris.player.objectPath(`track/${attributes.playParams.id.replace(/[.]+/g, "")}`),
'mpris:length': attributes.durationInMillis * 1000, // In microseconds 'mpris:length': attributes.durationInMillis * 1000, // In microseconds
'mpris:artUrl': (attributes.artwork.url.replace('/{w}x{h}bb', '/512x512bb')).replace('/2000x2000bb', '/35x35bb'), 'mpris:artUrl': (attributes.artwork.url.replace('/{w}x{h}bb', '/512x512bb')).replace('/2000x2000bb', '/35x35bb'),
@ -103,33 +112,12 @@ export default class mpris {
'xesam:album': `${attributes.albumName}`, 'xesam:album': `${attributes.albumName}`,
'xesam:artist': [`${attributes.artistName}`], 'xesam:artist': [`${attributes.artistName}`],
'xesam:genre': attributes.genreNames 'xesam:genre': attributes.genreNames
};
} }
if (mpris.player.metadata["mpris:trackid"] === MetaData["mpris:trackid"]) { /*******************************************************************************************
return * Public Methods
} * ****************************************************************************************/
mpris.player.metadata = MetaData;
}
/**
* Update M.P.R.I.S Player State
* @private
* @param attributes
*/
private static updatePlayerState(attributes: any) {
switch (attributes.status) {
case true: // Playing
mpris.player.playbackStatus = Player.PLAYBACK_STATUS_PLAYING;
break;
case false: // Paused
mpris.player.playbackStatus = Player.PLAYBACK_STATUS_PAUSED;
break;
default:
mpris.player.playbackStatus = Player.PLAYBACK_STATUS_STOPPED;
break
}
}
/** /**
* Clear state * Clear state
@ -143,26 +131,12 @@ export default class mpris {
mpris.player.playbackStatus = Player.PLAYBACK_STATUS_STOPPED; mpris.player.playbackStatus = Player.PLAYBACK_STATUS_STOPPED;
} }
/*******************************************************************************************
* Public Methods
* ****************************************************************************************/
/**
* Runs on plugin load (Currently run on application start)
*/
constructor(utils: any) {
mpris.utils = utils
console.debug(`[Plugin][${mpris.name}] Loading Complete.`);
}
/** /**
* Runs on app ready * Runs on app ready
*/ */
@mpris.linuxOnly @mpris.linuxOnly
onReady(_: any): void { onReady(_: any): void {
console.debug(`[Plugin][${mpris.name}] Ready.`); console.debug(`[${mpris.name}:onReady] Ready.`);
} }
/** /**
@ -187,9 +161,8 @@ export default class mpris {
* @param attributes Music Attributes (attributes.status = current state) * @param attributes Music Attributes (attributes.status = current state)
*/ */
@mpris.linuxOnly @mpris.linuxOnly
onPlaybackStateDidChange(attributes: object): void { onPlaybackStateDidChange(attributes: any): void {
// console.debug(`[Plugin][${mpris.name}] onPlaybackStateDidChange.`); mpris.player.playbackStatus = attributes?.status ? Player.PLAYBACK_STATUS_PLAYING : Player.PLAYBACK_STATUS_PAUSED
mpris.updatePlayerState(attributes)
} }
/** /**
@ -198,8 +171,7 @@ export default class mpris {
*/ */
@mpris.linuxOnly @mpris.linuxOnly
onNowPlayingItemDidChange(attributes: object): void { onNowPlayingItemDidChange(attributes: object): void {
// console.debug(`[Plugin][${mpris.name}] onMetadataDidChange.`); mpris.updateMetaData(attributes);
mpris.updatePlayer(attributes);
} }
} }

View file

@ -20,6 +20,10 @@ const MusicKitInterop = {
}); });
/** wsapi */ /** wsapi */
MusicKit.getInstance().addEventListener(MusicKit.Events.playbackTimeDidChange, () => {
ipcRenderer.send('mpris:playbackTimeDidChange', (MusicKit.getInstance()?.currentPlaybackTime * 1000 * 1000 ) ?? 0);
})
MusicKit.getInstance().addEventListener(MusicKit.Events.nowPlayingItemDidChange, async () => { MusicKit.getInstance().addEventListener(MusicKit.Events.nowPlayingItemDidChange, async () => {
console.debug('[cider:preload] nowPlayingItemDidChange') console.debug('[cider:preload] nowPlayingItemDidChange')
const attributes = MusicKitInterop.getAttributes() const attributes = MusicKitInterop.getAttributes()
@ -38,11 +42,19 @@ const MusicKitInterop = {
MusicKit.getInstance().addEventListener(MusicKit.Events.authorizationStatusDidChange, () => { MusicKit.getInstance().addEventListener(MusicKit.Events.authorizationStatusDidChange, () => {
global.ipcRenderer.send('authorizationStatusDidChange', MusicKit.getInstance().authorizationStatus) global.ipcRenderer.send('authorizationStatusDidChange', MusicKit.getInstance().authorizationStatus)
}) });
MusicKit.getInstance().addEventListener(MusicKit.Events.mediaPlaybackError, (e) => { MusicKit.getInstance().addEventListener(MusicKit.Events.mediaPlaybackError, (e) => {
console.warn(`[cider:preload] mediaPlaybackError] ${e}`); console.warn(`[cider:preload] mediaPlaybackError] ${e}`);
}) });
MusicKit.getInstance().addEventListener(MusicKit.Events.shuffleModeDidChange, () => {
global.ipcRenderer.send('shuffleModeDidChange', MusicKit.getInstance().shuffleMode)
});
MusicKit.getInstance().addEventListener(MusicKit.Events.repeatModeDidChange, () => {
global.ipcRenderer.send('repeatModeDidChange', MusicKit.getInstance().repeatMode)
});
}, },
sleep(ms) { sleep(ms) {
@ -79,6 +91,7 @@ const MusicKitInterop = {
? remainingTimeExport * 1000 ? remainingTimeExport * 1000
: 0; : 0;
attributes.durationInMillis = attributes?.durationInMillis ?? 0; attributes.durationInMillis = attributes?.durationInMillis ?? 0;
attributes.currentPlaybackTime = mk?.currentPlaybackTime ?? 0;
attributes.currentPlaybackProgress = currentPlaybackProgress ?? 0; attributes.currentPlaybackProgress = currentPlaybackProgress ?? 0;
attributes.startTime = Date.now(); attributes.startTime = Date.now();
attributes.endTime = Math.round( attributes.endTime = Math.round(

View file

@ -35,6 +35,11 @@
margin : 0px; margin : 0px;
height : 100%; height : 100%;
position : relative; position : relative;
white-space: nowrap;
._svg-icon {
flex: 0 0 auto;
}
&:before { &:before {
--dist : 1px; --dist : 1px;

View file

@ -1226,7 +1226,7 @@ const app = new Vue({
} else if (this.cfg.visual.directives[directive]) { } else if (this.cfg.visual.directives[directive]) {
return this.cfg.visual.directives[directive] return this.cfg.visual.directives[directive]
} else { } else {
return "" return false
} }
}, },
unauthorize() { unauthorize() {
@ -2017,7 +2017,7 @@ const app = new Vue({
}); });
window.location.hash = `${kind}/${id}` window.location.hash = `${kind}/${id}`
document.querySelector("#app-content").scrollTop = 0 document.querySelector("#app-content").scrollTop = 0
} else if (kind = "social-profiles") { } else if (kind.toString().includes("social-profiles")) {
app.page = (kind) + "_" + (id); app.page = (kind) + "_" + (id);
app.mk.api.v3.music( app.mk.api.v3.music(
`/v1/social/${app.mk.storefrontId}/social-profiles/${id}`, `/v1/social/${app.mk.storefrontId}/social-profiles/${id}`,
@ -3196,45 +3196,40 @@ const app = new Vue({
function getMXMTrans(lang, vanity_id) { function getMXMTrans(lang, vanity_id) {
try { try {
if (lang != "disabled" && vanity_id != '') { // Mode 2 -> Trans if (lang != "disabled" && vanity_id != '') { // Mode 2 -> Trans
fetch('https://www.musixmatch.com/lyrics/' + vanity_id +'/translation/' + lang, { let url = "https://api.cider.sh/v1/lyrics?vanityID=" + vanity_id +'&source=mxm&lang=' + lang;
method: 'GET', let req = new XMLHttpRequest();
headers: { req.overrideMimeType("application/json");
'Host': 'musixmatch.com', req.onload = function () {
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36", if (req.status == 200) { // If it's not 200, 237890127389012 things could go wrong and I don't really care what those things are.
'authority': "www.musixmatch.com" let jsonResponse = JSON.parse(this.responseText);
},
})
.then(async (res) => {
if (res.status != 200) {return}
let html = document.createElement('html'); html.innerHTML = await res.text()
let lyric_isolated = html.querySelector("#site > div > div > div > main > div > div > div.mxm-track-lyrics-container > div.container > div > div > div > div.col-sm-12.col-md-10.col-ml-9.col-lg-9 > div.mxm-lyrics.translated > div.row > div.col-xs-12.col-sm-12.col-md-12.col-ml-12.col-lg-12")
let raw_lines = lyric_isolated.getElementsByClassName("col-xs-6 col-sm-6 col-md-6 col-ml-6 col-lg-6")
let applied = 0; let applied = 0;
for (let i = 1; applied < app.lyrics.length; i+=2) { // Start on odd elements because even ones are original. for (let i = 0; applied < app.lyrics.length; i++) {
if (raw_lines[i].childNodes[0].childNodes[0].textContent.trim() == "") {i+=2;} if (app.lyrics[applied].line.trim() === "") {applied+=1;}
if (app.lyrics[applied].line.trim() == "") {applied+=1;} if (app.lyrics[applied].line.trim() === jsonResponse[i]) {
if (app.lyrics[applied].line.trim() === raw_lines[i].childNodes[0].childNodes[0].textContent.trim().replace('', "'")) {
// Do Nothing // Do Nothing
applied +=1; applied +=1;
} }
else { else {
if (app.lyrics[applied].line === "lrcInstrumental") { if (app.lyrics[applied].line === "lrcInstrumental") {
if (app.lyrics[applied+1].line.trim() === raw_lines[i].childNodes[0].childNodes[0].textContent.trim()) { if (app.lyrics[applied+1].line.trim() === jsonResponse[i]) {
// Do Nothing // Do Nothing
applied +=2; applied +=2;
} }
else { else {
app.lyrics[applied+1].translation = raw_lines[i].childNodes[0].childNodes[0].textContent.trim(); app.lyrics[applied+1].translation = jsonResponse[i];
applied +=2; applied +=2;
} }
} }
else { else {
app.lyrics[applied].translation = raw_lines[i].childNodes[0].childNodes[0].textContent.trim(); app.lyrics[applied].translation = jsonResponse[i];
applied +=1; applied +=1;
} }
} }
} }
}) }
}
req.open('POST', url, true);
req.send();
} }
} catch (e) {console.debug("Error while parsing MXM Trans: " + e)} } catch (e) {console.debug("Error while parsing MXM Trans: " + e)}

View file

@ -3160,6 +3160,11 @@ input[type=range].md-slider::-webkit-slider-runnable-track {
flex: 0 0 auto; flex: 0 0 auto;
width: auto; width: auto;
} }
@media only screen and (min-width: 1133px) and (max-width: 1233px) {
.about-page .row .col-auto {
display: none !important;
}
}
.col-1 { .col-1 {
flex: 0 0 auto; flex: 0 0 auto;
width: 8.33333333%; width: 8.33333333%;
@ -6007,6 +6012,11 @@ fieldset:disabled .btn {
flex: 0 0 auto; flex: 0 0 auto;
width: auto; width: auto;
} }
@media only screen and (min-width: 1133px) and (max-width: 1233px) {
.about-page .row .col-auto {
display: none !important;
}
}
.col-1 { .col-1 {
flex: 0 0 auto; flex: 0 0 auto;
width: 8.33333333%; width: 8.33333333%;
@ -11324,11 +11334,11 @@ fieldset:disabled .btn {
} }
/* mediaitem-square */ /* mediaitem-square */
.cd-mediaitem-square { .cd-mediaitem-square {
--transitionDuration: 0.25s; --transitionDuration: 0.5s;
--scaleRate: 1.25; --scaleRate: 1.25;
--scaleRateArtwork: 1; --scaleRateArtwork: 1;
width: 200px; width: calc(160px * var(--windowRelativeScale));
height: 200px; height: calc(200px * var(--windowRelativeScale));
display: inline-flex; display: inline-flex;
flex: 0 0 auto; flex: 0 0 auto;
flex-direction: column; flex-direction: column;
@ -11336,14 +11346,13 @@ fieldset:disabled .btn {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 6px; border-radius: 6px;
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
} }
.cd-mediaitem-square .artwork-container { .cd-mediaitem-square .artwork-container {
position: relative; position: relative;
} }
.cd-mediaitem-square .artwork-container .artwork { .cd-mediaitem-square .artwork-container .artwork {
height: 150px; height: calc(140px * var(--windowRelativeScale));
width: 150px; width: calc(140px * var(--windowRelativeScale));
background: blue; background: blue;
border-radius: var(--mediaItemRadius); border-radius: var(--mediaItemRadius);
background: var(--artwork); background: var(--artwork);
@ -11351,7 +11360,6 @@ fieldset:disabled .btn {
flex: 0 0 auto; flex: 0 0 auto;
margin: 6px; margin: 6px;
cursor: pointer; cursor: pointer;
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
} }
.cd-mediaitem-square .artwork-container .artwork .mediaitem-artwork { .cd-mediaitem-square .artwork-container .artwork .mediaitem-artwork {
box-shadow: unset; box-shadow: unset;
@ -11411,30 +11419,6 @@ fieldset:disabled .btn {
.cd-mediaitem-square .artwork-container:hover > .menu-btn { .cd-mediaitem-square .artwork-container:hover > .menu-btn {
opacity: 1; opacity: 1;
} }
@media (min-width: 1460px) {
.cd-mediaitem-square:not(.mediaitem-card):not(.mediaitem-brick):not(.mediaitem-video):not(.noscale) {
--scaleRate: 1.1;
--scaleRateArtwork: 0.9;
width: calc(200px * var(--scaleRate));
height: calc(200px * var(--scaleRate));
}
.cd-mediaitem-square:not(.mediaitem-card):not(.mediaitem-brick):not(.mediaitem-video):not(.noscale) .artwork-container > .artwork {
width: calc(190px * var(--scaleRateArtwork));
height: calc(190px * var(--scaleRateArtwork));
}
}
@media (min-width: 1550px) {
.cd-mediaitem-square:not(.mediaitem-card):not(.mediaitem-brick):not(.mediaitem-video):not(.noscale) {
--scaleRate: 1.25;
--scaleRateArtwork: 1;
width: calc(200px * var(--scaleRate));
height: calc(200px * var(--scaleRate));
}
.cd-mediaitem-square:not(.mediaitem-card):not(.mediaitem-brick):not(.mediaitem-video):not(.noscale) .artwork-container > .artwork {
width: calc(190px * var(--scaleRateArtwork));
height: calc(190px * var(--scaleRateArtwork));
}
}
.cd-mediaitem-square .info-rect { .cd-mediaitem-square .info-rect {
width: 90%; width: 90%;
height: 100%; height: 100%;
@ -11478,10 +11462,12 @@ fieldset:disabled .btn {
.cd-mediaitem-square.mediaitem-video { .cd-mediaitem-square.mediaitem-video {
height: 200px; height: 200px;
width: 240px; width: 240px;
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
} }
.cd-mediaitem-square.mediaitem-video .artwork { .cd-mediaitem-square.mediaitem-video .artwork {
height: 120px; height: 120px;
width: 212px; width: 212px;
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
} }
@media (min-width: 1460px) { @media (min-width: 1460px) {
.cd-mediaitem-square.mediaitem-video:not(.noscale) { .cd-mediaitem-square.mediaitem-video:not(.noscale) {
@ -11510,10 +11496,12 @@ fieldset:disabled .btn {
.cd-mediaitem-square.mediaitem-brick { .cd-mediaitem-square.mediaitem-brick {
height: 200px; height: 200px;
width: 240px; width: 240px;
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
} }
.cd-mediaitem-square.mediaitem-brick .artwork { .cd-mediaitem-square.mediaitem-brick .artwork {
height: 123px; height: 123px;
width: 220px; width: 220px;
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
} }
@media (min-width: 1460px) { @media (min-width: 1460px) {
.cd-mediaitem-square.mediaitem-brick:not(.noscale) { .cd-mediaitem-square.mediaitem-brick:not(.noscale) {
@ -11540,12 +11528,14 @@ fieldset:disabled .btn {
} }
} }
.cd-mediaitem-square.mediaitem-small { .cd-mediaitem-square.mediaitem-small {
width: 140px; width: calc(140px, var(--windowRelativeScale));
height: 180px; height: calc(180px, var(--windowRelativeScale));
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
} }
.cd-mediaitem-square.mediaitem-small .artwork { .cd-mediaitem-square.mediaitem-small .artwork {
height: 128px; height: calc(128px, var(--windowRelativeScale));
width: 128px; width: calc(128px, var(--windowRelativeScale));
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
} }
.cd-mediaitem-square.mediaitem-card { .cd-mediaitem-square.mediaitem-card {
background: #ccc; background: #ccc;
@ -11556,6 +11546,7 @@ fieldset:disabled .btn {
position: relative; position: relative;
border-radius: calc(var(--mediaItemRadius) * 2); border-radius: calc(var(--mediaItemRadius) * 2);
box-shadow: var(--mediaItemShadow-ShadowSubtle); box-shadow: var(--mediaItemShadow-ShadowSubtle);
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
} }
.cd-mediaitem-square.mediaitem-card .artwork { .cd-mediaitem-square.mediaitem-card .artwork {
width: 230px; width: 230px;
@ -11635,7 +11626,7 @@ fieldset:disabled .btn {
.cd-mediaitem-square.mediaitem-card:hover .info-rect-card::before { .cd-mediaitem-square.mediaitem-card:hover .info-rect-card::before {
filter: brightness(0.3) blur(50px) saturate(180%); filter: brightness(0.3) blur(50px) saturate(180%);
} }
@media (min-width: 1460px) { @media (min-width: 1200px) {
.cd-mediaitem-square.mediaitem-card:not(.noscale) { .cd-mediaitem-square.mediaitem-card:not(.noscale) {
width: calc(230px * 1.1); width: calc(230px * 1.1);
height: calc(298px * 1.1); height: calc(298px * 1.1);
@ -11645,7 +11636,7 @@ fieldset:disabled .btn {
height: calc(230px * 1.1); height: calc(230px * 1.1);
} }
} }
@media (min-width: 1550px) { @media (min-width: 1400px) {
.cd-mediaitem-square.mediaitem-card:not(.noscale) { .cd-mediaitem-square.mediaitem-card:not(.noscale) {
width: calc(230px * 1.25); width: calc(230px * 1.25);
height: calc(298px * 1.25); height: calc(298px * 1.25);
@ -12985,8 +12976,7 @@ input[type=checkbox][switch]:checked:active::before {
.github-themes-page { .github-themes-page {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 0px; height: 100%;
height: calc(100% - var(--navigationBarHeight));
} }
.github-themes-page .github-avatar { .github-themes-page .github-avatar {
height: 42px; height: 42px;
@ -13010,9 +13000,11 @@ input[type=checkbox][switch]:checked:active::before {
} }
.github-themes-page .repos-list { .github-themes-page .repos-list {
height: 100%; height: 100%;
overflow-y: overlay;
width: 320px; width: 320px;
font-size: 14px; font-size: 14px;
overflow: overlay;
padding-bottom: 16px;
flex: 0 0 auto;
} }
.github-themes-page .repos-list > .list-group { .github-themes-page .repos-list > .list-group {
margin: 0px; margin: 0px;
@ -13029,9 +13021,9 @@ input[type=checkbox][switch]:checked:active::before {
.github-themes-page .github-preview { .github-themes-page .github-preview {
height: 100%; height: 100%;
flex: 1; flex: 1;
background: var(--color2);
padding: 16px 32px; padding: 16px 32px;
overflow-y: overlay; overflow: auto;
padding-bottom: 16px;
} }
.github-themes-page .gh-content { .github-themes-page .gh-content {
display: flex; display: flex;
@ -13041,6 +13033,147 @@ input[type=checkbox][switch]:checked:active::before {
} }
.github-themes-page .gh-header { .github-themes-page .gh-header {
padding: 16px; padding: 16px;
height: 64px;
display: grid;
align-content: center;
flex: 0 0 auto;
}
.github-themes-page .gh-header .header-text {
position: initial !important;
justify-content: left !important;
}
.github-themes-page .installed-themes-page .style-editor-container {
height: 100%;
flex: 1;
background: var(--color2);
padding: 0px;
overflow-y: overlay;
}
.github-themes-page .installed-themes-page .style-editor-container .list-group-item {
border-radius: 0px;
}
.installed-themes-page {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.installed-themes-page .themeContextMenu {
background: transparent;
color: var(--keyColor);
border: 0px;
}
.installed-themes-page .list-group-item.addon {
background: rgba(86, 86, 86, 0.2);
}
.installed-themes-page .list-group-item.applied {
background: var(--keyColor-disabled);
pointer-events: none;
}
.installed-themes-page .repo-header {
font-size: 16px;
position: sticky;
top: 0;
left: 0;
right: 0;
width: 100%;
height: 50px;
z-index: 1;
background: rgba(36, 36, 36, 0.5);
display: flex;
justify-content: center;
align-items: center;
backdrop-filter: var(--glassFilter);
overflow: hidden;
border-bottom: 1px solid rgba(0, 0, 0, 0.18);
border-top: 1px solid rgba(135, 135, 135, 0.18);
}
.installed-themes-page .gh-header {
z-index: 5;
padding: 16px;
flex: 0 0 auto;
height: 64px;
display: grid;
align-content: center;
}
.installed-themes-page .gh-header .header-text {
position: initial !important;
justify-content: left !important;
}
.installed-themes-page .gh-content {
display: flex;
flex-direction: row;
padding: 0px;
height: 100%;
flex: 0 0 auto;
}
.installed-themes-page .gh-content .repos-list {
width: 320px;
overflow: overlay;
height: 90%;
font-size: 14px;
white-space: nowrap;
}
.installed-themes-page .gh-content .repos-list > .list-group {
margin: 0px;
padding-bottom: 16px;
}
.installed-themes-page .gh-content .repos-list .list-group-item {
padding: 12px 6px;
}
.installed-themes-page .gh-content .repos-list .list-group-item:hover {
filter: brightness(1.2);
}
.installed-themes-page .gh-content .repos-list .list-group-item:active {
filter: brightness(0.8);
}
.installed-themes-page .gh-content .style-editor-container {
height: 100%;
flex: 1;
padding: 0px;
width: 100%;
overflow: hidden;
}
.installed-themes-page .gh-content .style-editor-container .stylestack-editor {
padding-bottom: 16px;
}
.installed-themes-page .gh-content .style-editor-container .list-group-item {
border-radius: 0px;
}
.installed-themes-page .stylestack-editor {
width: 100%;
}
.installed-themes-page .stylestack-editor .btn,
.installed-themes-page .stylestack-editor .btn-group {
width: 100%;
}
.installed-themes-page .stylestack-editor .themeLabel {
display: flex;
align-items: center;
}
.installed-themes-page .stylestack-editor .handle {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.installed-themes-page .stylestack-editor .list-group-item:hover {
cursor: grab;
}
.installed-themes-page .stylestack-editor .list-group-item:active {
cursor: grabbing;
}
.installed-themes-page .stylestack-editor .removeItem {
border: 0px;
background: transparent;
height: 32px;
font-weight: bold;
color: var(--textColor);
cursor: pointer;
}
.installed-themes-page .stylestack-editor .stylesDropdown > .dropdown-menu {
height: 300px;
overflow-y: overlay;
} }
.library-page { .library-page {
padding: 0px; padding: 0px;
@ -13843,7 +13976,7 @@ input[type=checkbox][switch]:checked:active::before {
right: 28px; right: 28px;
} }
.artist-page.animated .artist-header { .artist-page.animated .artist-header {
min-height: 500px; min-height: 80vh;
} }
.artist-page .artist-header { .artist-page .artist-header {
color: white; color: white;
@ -13893,6 +14026,23 @@ input[type=checkbox][switch]:checked:active::before {
bottom: 82px; bottom: 82px;
right: 28px; right: 28px;
} }
.artist-page .artist-header .social-btn {
border-radius: 100%;
background: transparent;
height: 17px;
border: 0px;
cursor: pointer;
z-index: 69;
display: flex;
justify-content: center;
align-items: center;
float: right;
}
@media only screen and (min-width: 1133px) and (max-width: 1277px) {
.artist-page .artist-header .about-page .social-btn {
display: none !important;
}
}
.artist-page .artist-header .animated { .artist-page .artist-header .animated {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -13911,6 +14061,7 @@ input[type=checkbox][switch]:checked:active::before {
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
object-fit: cover;
} }
.artist-page .artist-header .row .col.flex-center { .artist-page .artist-header .row .col.flex-center {
z-index: 4; z-index: 4;
@ -14025,81 +14176,6 @@ input[type=checkbox][switch]:checked:active::before {
background: rgba(200, 200, 200, 0.1); background: rgba(200, 200, 200, 0.1);
} }
/* Artist Page End */ /* Artist Page End */
.installed-themes-page .themeContextMenu {
background: transparent;
color: var(--keyColor);
border: 0px;
}
.installed-themes-page .list-group-item.addon {
background: rgba(86, 86, 86, 0.2);
}
.installed-themes-page .list-group-item.applied {
background: var(--keyColor-disabled);
pointer-events: none;
}
.installed-themes-page .repo-header {
font-size: 16px;
position: sticky;
top: 0;
left: 0;
right: 0;
width: 100%;
height: 50px;
z-index: 1;
background: rgba(36, 36, 36, 0.5);
display: flex;
justify-content: center;
align-items: center;
backdrop-filter: var(--glassFilter);
overflow: hidden;
border-bottom: 1px solid rgba(0, 0, 0, 0.18);
border-top: 1px solid rgba(135, 135, 135, 0.18);
}
.installed-themes-page .style-editor-container {
height: 100%;
flex: 1;
background: var(--color2);
padding: 0px;
overflow-y: overlay;
}
.installed-themes-page .style-editor-container .list-group-item {
border-radius: 0px;
}
.installed-themes-page .stylestack-editor {
width: 100%;
}
.installed-themes-page .stylestack-editor .btn,
.installed-themes-page .stylestack-editor .btn-group {
width: 100%;
}
.installed-themes-page .stylestack-editor .themeLabel {
display: flex;
align-items: center;
}
.installed-themes-page .stylestack-editor .handle {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.installed-themes-page .stylestack-editor .list-group-item:hover {
cursor: grab;
}
.installed-themes-page .stylestack-editor .list-group-item:active {
cursor: grabbing;
}
.installed-themes-page .stylestack-editor .removeItem {
border: 0px;
background: transparent;
height: 32px;
font-weight: bold;
color: var(--textColor);
cursor: pointer;
}
.installed-themes-page .stylestack-editor .stylesDropdown > .dropdown-menu {
height: 300px;
overflow-y: overlay;
}
.settings-page { .settings-page {
padding: 0px; padding: 0px;
} }
@ -14612,7 +14688,7 @@ input[type=checkbox][switch]:checked:active::before {
} }
.settings-panel .settings-window { .settings-panel .settings-window {
background: var(--baseColorMix); background: var(--baseColorMix);
max-width: 80%; max-width: 90%;
max-height: 90%; max-height: 90%;
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -14646,6 +14722,10 @@ input[type=checkbox][switch]:checked:active::before {
display: flex; display: flex;
gap: 10px; gap: 10px;
align-items: center; align-items: center;
height: 35px;
}
.settings-panel .settings-window .nav-pills .nav-link :nth-child(2) {
white-space: nowrap;
} }
.settings-panel .settings-window .md-option-header { .settings-panel .settings-window .md-option-header {
padding: 0px 26px; padding: 0px 26px;
@ -14696,6 +14776,10 @@ input[type=checkbox][switch]:checked:active::before {
.settings-panel .settings-window .close-btn:hover { .settings-panel .settings-window .close-btn:hover {
background-color: #c42b1c; background-color: #c42b1c;
} }
.settings-panel .settings-window .close-btn.back-btn {
left: 10px;
right: unset;
}
.settings-panel .settings-window .close-btn.minmax-btn { .settings-panel .settings-window .close-btn.minmax-btn {
right: 52px; right: 52px;
} }
@ -14716,6 +14800,9 @@ input[type=checkbox][switch]:checked:active::before {
} }
.settings-panel .settings-window .tabs > .col-auto { .settings-panel .settings-window .tabs > .col-auto {
width: 230px; width: 230px;
overflow-x: hidden;
overflow-y: overlay;
transition: width 0.25s ease-in-out;
} }
.settings-panel .settings-window .tabs .tab-content { .settings-panel .settings-window .tabs .tab-content {
margin: 0 !important; margin: 0 !important;
@ -14724,13 +14811,40 @@ input[type=checkbox][switch]:checked:active::before {
overflow-y: overlay; overflow-y: overlay;
height: 100%; height: 100%;
background-color: var(--panelColor2); background-color: var(--panelColor2);
padding: 0px;
padding-top: 48px; padding-top: 48px;
border-left: 1px solid var(--borderColor); border-left: 1px solid var(--borderColor);
} }
.settings-panel .settings-window .github-themes-page .header-text,
.settings-panel .settings-window .installed-themes-page .header-text {
font-size: 1.25em;
}
.settings-panel .settings-window .tab-pane {
height: 100%;
}
.settings-panel .settings-window .settings-tab-content {
height: 100%;
}
.settings-panel .settings-window.no-sidebar .gh-header > .row:last-child {
padding-right: 90px;
}
.settings-panel .settings-window.no-sidebar .tab-content {
padding-top: 0px;
}
.settings-panel .settings-window.no-sidebar .tabs .nav-pills .nav-link {
width: 50px;
}
.settings-panel .settings-window.no-sidebar .tabs .nav-pills .nav-link :nth-child(2) {
opacity: 0;
}
.settings-panel .settings-window.no-sidebar .tabs > .col-auto {
width: 80px;
}
#hid___BV_tab_button__ { #hid___BV_tab_button__ {
display: none; display: none;
} }
:root { :root {
--windowRelativeScale: 1;
--appleEase: cubic-bezier(0.42, 0, 0.58, 1); --appleEase: cubic-bezier(0.42, 0, 0.58, 1);
--borderColor: rgba(200, 200, 200, 0.16); --borderColor: rgba(200, 200, 200, 0.16);
--mediaItemShadow: inset 0px 0px 0px 1px rgba(200, 200, 200, 0.16); --mediaItemShadow: inset 0px 0px 0px 1px rgba(200, 200, 200, 0.16);
@ -15086,6 +15200,7 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
overflow: hidden; overflow: hidden;
height: calc(calc(100% - 6%) - var(--chromeHeight1)); height: calc(calc(100% - 6%) - var(--chromeHeight1));
top: calc(var(--chromeHeight1) + 3%); top: calc(var(--chromeHeight1) + 3%);
transition: 0.3s var(--appleEase);
} }
.app-drawer .bgArtworkMaterial { .app-drawer .bgArtworkMaterial {
display: none; display: none;
@ -15855,6 +15970,7 @@ body[platform="darwin"] .app-chrome .app-chrome-item > .window-controls > div.cl
height: 15px; height: 15px;
width: 15px; width: 15px;
margin-bottom: 15px; margin-bottom: 15px;
z-index: 1;
} }
div[data-type="library-music-videos"] .info-rect .title::before, div[data-type="library-music-videos"] .info-rect .title::before,
div[data-type="musicVideo"] .info-rect .title::before { div[data-type="musicVideo"] .info-rect .title::before {
@ -16318,6 +16434,23 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
background: #eee; background: #eee;
--url: url("./views/svg/more.svg"); --url: url("./views/svg/more.svg");
} }
.social-btn {
border-radius: 100%;
background: transparent;
height: 17px;
border: 0px;
cursor: pointer;
z-index: 69;
display: flex;
justify-content: center;
align-items: center;
float: right;
}
@media only screen and (min-width: 1133px) and (max-width: 1277px) {
.about-page .social-btn {
display: none !important;
}
}
.about-page .teamBtn { .about-page .teamBtn {
display: flex; display: flex;
align-items: center; align-items: center;
@ -16450,7 +16583,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
} }
@media screen and (min-width: 1500px) { @media screen and (min-width: 1500px) {
.well.itemContainer.collection-list-square { .well.itemContainer.collection-list-square {
grid-template-columns: repeat(6, minmax(200px, 1fr)); grid-template-columns: repeat(5, minmax(200px, 1fr));
} }
} }
@media screen and (max-width: 1150px) { @media screen and (max-width: 1150px) {
@ -17750,6 +17883,7 @@ body.no-gpu .app-drawer {
backdrop-filter: unset; backdrop-filter: unset;
mix-blend-mode: unset; mix-blend-mode: unset;
background: #1c1c1c; background: #1c1c1c;
transition: unset;
} }
body.no-gpu .wpfade-enter-active, body.no-gpu .wpfade-enter-active,
body.no-gpu .wpfade-leave-active { body.no-gpu .wpfade-leave-active {
@ -17976,6 +18110,18 @@ body[platform="darwin"] #app.twopanel .app-chrome .app-mainmenu {
body[platform="darwin"] #app.twopanel .app-chrome.chrome-bottom { body[platform="darwin"] #app.twopanel .app-chrome.chrome-bottom {
background-color: var(--macOSChromeColor); background-color: var(--macOSChromeColor);
} }
body[platform="darwin"] #app[window-state="normal"]::after {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
box-shadow: inset 0px 0px 0.5px 1px rgba(200, 200, 200, 0.4);
border-radius: 10px;
content: " ";
z-index: 999999;
pointer-events: none;
}
body[platform="darwin"] #app-main { body[platform="darwin"] #app-main {
background-color: transparent; background-color: transparent;
} }
@ -17985,6 +18131,10 @@ body[platform="darwin"] #app-main .app-navigation {
body[platform="darwin"] #app-main #app-content { body[platform="darwin"] #app-main #app-content {
background-color: #1e1e1e6b; background-color: #1e1e1e6b;
} }
body[platform="darwin"] .settings-window.maxed .tabs > .col-auto {
transition: padding-top 0.3s linear;
padding-top: var(--chromeHeight1);
}
body[platform="darwin"] #apple-music-video-player-controls #player-exit { body[platform="darwin"] #apple-music-video-player-controls #player-exit {
margin-top: 18px; margin-top: 18px;
left: 70px; left: 70px;
@ -18111,6 +18261,10 @@ body[platform="linux"] .window-controls > div.restore::before {
margin: 0px; margin: 0px;
height: 100%; height: 100%;
position: relative; position: relative;
white-space: nowrap;
}
#app.twopanel .app-chrome:not(.chrome-bottom) .app-chrome--center .top-nav-group .app-sidebar-item ._svg-icon {
flex: 0 0 auto;
} }
#app.twopanel .app-chrome:not(.chrome-bottom) .app-chrome--center .top-nav-group .app-sidebar-item:before { #app.twopanel .app-chrome:not(.chrome-bottom) .app-chrome--center .top-nav-group .app-sidebar-item:before {
--dist: 1px; --dist: 1px;

View file

@ -208,6 +208,7 @@ body.notransparency::before {
0% { 0% {
transform: rotateZ(0deg); transform: rotateZ(0deg);
} }
100% { 100% {
transform: rotateZ(360deg); transform: rotateZ(360deg);
} }
@ -217,7 +218,8 @@ body.notransparency::before {
display: none !important; display: none !important;
} }
input[type="text"], input[type="number"] { input[type="text"],
input[type="number"] {
background : #1c1c1c; background : #1c1c1c;
border-radius: 3px; border-radius: 3px;
border : 1px solid rgb(200 200 200 / 25%); border : 1px solid rgb(200 200 200 / 25%);
@ -248,6 +250,7 @@ a.dropdown-item {
background-color: var(--selected); background-color: var(--selected);
color : var(--textColor); color : var(--textColor);
} }
&:active { &:active {
background-color: var(--selected-click); background-color: var(--selected-click);
} }
@ -270,6 +273,7 @@ a.dropdown-item {
0% { 0% {
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
transform: rotate(360deg); transform: rotate(360deg);
} }
@ -443,6 +447,8 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
filter: brightness(80%) blur(180px) saturate(180%) contrast(1); filter: brightness(80%) blur(180px) saturate(180%) contrast(1);
} }
} }
transition: .3s var(--appleEase);
} }
.search-input-container { .search-input-container {
@ -522,6 +528,7 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
.app-playback-controls { .app-playback-controls {
margin: 0 auto; margin: 0 auto;
.control-buttons { .control-buttons {
display : flex; display : flex;
justify-content: center; justify-content: center;
@ -537,6 +544,7 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
display: flex; display: flex;
padding: 6px; padding: 6px;
border : 0; border : 0;
>button { >button {
appearance : none; appearance : none;
width : 100%; width : 100%;
@ -544,12 +552,15 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
padding-left: 40px; padding-left: 40px;
text-align : left; text-align : left;
font-family : inherit; font-family : inherit;
&:hover { &:hover {
background-color: var(--selected); background-color: var(--selected);
} }
&:active { &:active {
background-color: var(--selected-click); background-color: var(--selected-click);
} }
&:after { &:after {
content : ''; content : '';
display : flex; display : flex;
@ -683,10 +694,12 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
box-shadow : var(--ciderShadow-Generic); box-shadow : var(--ciderShadow-Generic);
backdrop-filter: var(--glassFilter); backdrop-filter: var(--glassFilter);
animation : cmenuBodyIn .5s var(--appleEase); animation : cmenuBodyIn .5s var(--appleEase);
@keyframes cmenuBodyIn { @keyframes cmenuBodyIn {
0% { 0% {
background: rgb(30 30 30); background: rgb(30 30 30);
} }
100% { 100% {
background: rgb(30 30 30 / 45%); background: rgb(30 30 30 / 45%);
} }
@ -1008,6 +1021,7 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
} }
.app-chrome .app-chrome--center { .app-chrome .app-chrome--center {
//width: 40%; //width: 40%;
.app-title-text { .app-title-text {
font-size: 0.8em; font-size: 0.8em;
@ -1060,11 +1074,13 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
border-radius : 6px; border-radius : 6px;
} }
.volume-button:active, .volume-button--small:active { .volume-button:active,
.volume-button--small:active {
transform: scale(0.9); transform: scale(0.9);
} }
.volume-button.active, .volume-button--small.active { .volume-button.active,
.volume-button--small.active {
background-image: url("./assets/feather/volume.svg"); background-image: url("./assets/feather/volume.svg");
} }
@ -1155,7 +1171,8 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
transform: scale(1.1); transform: scale(1.1);
} }
&:active, &.active { &:active,
&.active {
border-radius: 100%; border-radius: 100%;
transform : scale(1.1); transform : scale(1.1);
outline : 2px solid var(--keyColor); outline : 2px solid var(--keyColor);
@ -1175,9 +1192,11 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
>div { >div {
height: 100%; height: 100%;
width : 32px; width : 32px;
&:hover { &:hover {
background: rgb(200 200 200 / 10%); background: rgb(200 200 200 / 10%);
} }
&.close { &.close {
width : 100%; width : 100%;
height : 100%; height : 100%;
@ -1190,6 +1209,7 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
background-color: rgb(196, 43, 28) background-color: rgb(196, 43, 28)
} }
} }
&.minmax { &.minmax {
background-image : var(--gfx-maxBtn); background-image : var(--gfx-maxBtn);
background-position: center; background-position: center;
@ -1198,9 +1218,11 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
width : 100%; width : 100%;
height : 100%; height : 100%;
} }
&.minmax.restore { &.minmax.restore {
background-image: var(--gfx-restoreBtn); background-image: var(--gfx-restoreBtn);
} }
&.minimize { &.minimize {
background-image : var(--gfx-minBtn); background-image : var(--gfx-minBtn);
background-position: center; background-position: center;
@ -1256,6 +1278,7 @@ body[platform="darwin"] .app-chrome .app-chrome-item > .window-controls > div.cl
align-items : center; align-items : center;
width : 100%; width : 100%;
} }
.song-name { .song-name {
font-weight: 600; font-weight: 600;
text-align : center; text-align : center;
@ -1325,6 +1348,7 @@ body[platform="darwin"] .app-chrome .app-chrome-item > .window-controls > div.cl
z-index : 1; z-index : 1;
} }
} }
// Add Music Video Icons to Songs that are Music Videos // Add Music Video Icons to Songs that are Music Videos
div[data-type="library-music-videos"] .info-rect .title::before, div[data-type="library-music-videos"] .info-rect .title::before,
div[data-type="musicVideo"] .info-rect .title::before { div[data-type="musicVideo"] .info-rect .title::before {
@ -1460,6 +1484,7 @@ div[data-type="musicVideo"] .info-rect .title::before {
flex : 0 0 auto; flex : 0 0 auto;
margin : 6px; margin : 6px;
image-rendering : -webkit-optimize-contrast; image-rendering : -webkit-optimize-contrast;
.mediaitem-artwork { .mediaitem-artwork {
border-radius: var(--mediaItemRadiusSmall); border-radius: var(--mediaItemRadiusSmall);
} }
@ -1586,7 +1611,8 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
/* Window is smaller <= 1023px width */ /* Window is smaller <= 1023px width */
@media only screen and (max-width: 1120px) { @media only screen and (max-width: 1120px) {
.display--small { .display--small {
display: inherit !important;; display: inherit !important;
;
.slider { .slider {
width : 100%; width : 100%;
@ -1742,6 +1768,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
.lyric-body:hover>.lyric-line:not(.active) { .lyric-body:hover>.lyric-line:not(.active) {
filter: none !important; filter: none !important;
} }
.lyric-body>.lyric-line:not(.active) { .lyric-body>.lyric-line:not(.active) {
// transition: filter var(--appleEase) 0.5s ease; // transition: filter var(--appleEase) 0.5s ease;
} }
@ -1786,7 +1813,8 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
transition : opacity 0.1s var(--appleEase); transition : opacity 0.1s var(--appleEase);
} }
.lyric-body:hover + .lyric-footer, .lyric-footer:hover { .lyric-body:hover+.lyric-footer,
.lyric-footer:hover {
display: flex; display: flex;
} }
@ -1937,18 +1965,23 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
margin : 0px 16px 0px 0px; margin : 0px 16px 0px 0px;
pointer-events: none; pointer-events: none;
} }
&.githubBtn { &.githubBtn {
background-color: #211F1F; background-color: #211F1F;
} }
&.kofiBtn { &.kofiBtn {
background-color: #FBAA19; background-color: #FBAA19;
} }
&.opencollectiveBtn { &.opencollectiveBtn {
background-color: #7fadf2; background-color: #7fadf2;
} }
&.discordBtn { &.discordBtn {
background-color: #5865F2; background-color: #5865F2;
} }
&.twitterBtn { &.twitterBtn {
background-color: #1D9BF0; background-color: #1D9BF0;
} }
@ -2037,9 +2070,11 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
display : flex; display : flex;
flex-flow : wrap; flex-flow : wrap;
justify-content: center; justify-content: center;
.cd-mediaitem-square-container { .cd-mediaitem-square-container {
align-items: center; align-items: center;
} }
.cd-mediaitem-square { .cd-mediaitem-square {
width : 220px; width : 220px;
height : 260px; height : 260px;
@ -2062,6 +2097,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
@media screen and (min-width: 1500px) { @media screen and (min-width: 1500px) {
grid-template-columns: repeat(5, minmax(200px, 1fr)); grid-template-columns: repeat(5, minmax(200px, 1fr));
} }
// less than 1100px // less than 1100px
@media screen and (max-width: 1150px) { @media screen and (max-width: 1150px) {
grid-template-columns: repeat(3, minmax(200px, 1fr)); grid-template-columns: repeat(3, minmax(200px, 1fr));
@ -2105,11 +2141,13 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
opacity : 1; opacity : 1;
// animation: micaEnter 1s ease-in-out forwards; // animation: micaEnter 1s ease-in-out forwards;
filter : brightness(1) saturate(320%); filter : brightness(1) saturate(320%);
@keyframes micaEnter { @keyframes micaEnter {
0% { 0% {
opacity : 0; opacity : 0;
transform: translateY(10px); transform: translateY(10px);
} }
100% { 100% {
opacity : 1; opacity : 1;
transform: translateY(0px); transform: translateY(0px);
@ -2137,9 +2175,11 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
z-index : 14 !important; z-index : 14 !important;
backdrop-filter: var(--glassFilter); backdrop-filter: var(--glassFilter);
} }
.app-navigation { .app-navigation {
height: 100%; height: 100%;
} }
.app-drawer { .app-drawer {
width : 100%; width : 100%;
right : 0px; right : 0px;
@ -2200,6 +2240,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
opacity : 0; opacity : 0;
transform: scale(0.98) transform: scale(0.98)
} }
100% { 100% {
opacity : 1; opacity : 1;
transform: scale(1); transform: scale(1);
@ -2332,9 +2373,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
transform: translateX(400px); transform: translateX(400px);
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {}
}
:root { :root {
--gfx-closeBtn : url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAIn2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi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E6M971mbVqn/vXmpbjugJ1jcKjiqrlhCeFp9dzqsm7wu1KKrosfC7s0eSCwvemHivxm8nJEv+YrIWDAbC0CLuSVRyrYiWlZYTl5bgz6TWlfB/zJY54di4ksVu8C50gE/hxMcUYAYYYZETmIfrw0i8rauQPFPNnWZVcRWaVDTRWSJIih0fUNakel5gQPS4jzYbZ/7991RM+b6m6ww8NL4bx0QO2HSjkDeP72DAKJ2B9hqtsJX/1CIY/Rc9XNPchOLfg4rqixfbgchs6n9SoFi1KVnFLIgHvZ9AcgbZbsC+Welbe5/QRwpvyVTewfwC9ct659At2bGftHD0UJwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAEtJREFUGJWNkMENwDAIA1FGY/8hkn8HOAqPfBsFKvz1yZYtbqwAlUIB6saUAH2NJ4MvL4PLgK/x13LAGTSqEaVa1a0x7XvcmI3D1wbntaRbB2haYwAAAABJRU5ErkJggg==');
@ -2387,22 +2426,26 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
transition: 0.2s ease-in-out filter; transition: 0.2s ease-in-out filter;
} }
} }
.playback-info { .playback-info {
position : absolute; position : absolute;
width : 100%; width : 100%;
bottom : 0; bottom : 0;
padding : 20px 40px; padding : 20px 40px;
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%); background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%);
.song-artist { .song-artist {
font-size : 1.7rem; font-size : 1.7rem;
font-weight: bold; font-weight: bold;
} }
.song-name { .song-name {
font-size : 1.2rem; font-size : 1.2rem;
font-weight: bold; font-weight: bold;
color : rgb(255, 255, 255, 0.8); color : rgb(255, 255, 255, 0.8);
} }
} }
input[type="range"] { input[type="range"] {
align-self : center; align-self : center;
height : 4px; height : 4px;
@ -2412,6 +2455,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
.song-progress input[type="range"] { .song-progress input[type="range"] {
appearance: initial; appearance: initial;
&::-webkit-slider-thumb { &::-webkit-slider-thumb {
box-shadow : 0px 0px 0px #000000; box-shadow : 0px 0px 0px #000000;
border : 1px solid #39404D; border : 1px solid #39404D;
@ -2437,25 +2481,30 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
top : 0; top : 0;
bottom: unset; bottom: unset;
} }
.inactive { .inactive {
opacity: 0; opacity: 0;
} }
#apple-music-video-player-controls { #apple-music-video-player-controls {
position: absolute; position: absolute;
z-index : 100001; z-index : 100001;
float : left; float : left;
width : 100%; width : 100%;
height : 100%; height : 100%;
.playback-info { .playback-info {
.song-progress { .song-progress {
display: flex; display: flex;
} }
.app-chrome-item.display--large { .app-chrome-item.display--large {
position : relative; position : relative;
display : flex; display : flex;
flex-direction: row; flex-direction: row;
flex-wrap : nowrap; flex-wrap : nowrap;
align-items : center; align-items : center;
.playback-button { .playback-button {
position : absolute; position : absolute;
top : 50%; top : 50%;
@ -2464,6 +2513,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
padding : 3px; padding : 3px;
} }
} }
.song-artist-album { .song-artist-album {
font-weight : 400; font-weight : 400;
font-size : 12px; font-size : 12px;
@ -2609,6 +2659,7 @@ body.no-gpu {
.bg-artwork-container { .bg-artwork-container {
display : none; display : none;
animation: none !important; animation: none !important;
.bg-artwork { .bg-artwork {
animation: none !important; animation: none !important;
} }
@ -2652,6 +2703,7 @@ body.no-gpu {
backdrop-filter: unset; backdrop-filter: unset;
mix-blend-mode : unset; mix-blend-mode : unset;
background : #1c1c1c; background : #1c1c1c;
transition: unset;
} }
.wpfade-enter-active, .wpfade-enter-active,
@ -2692,6 +2744,7 @@ body.no-gpu {
.moreinfo-modal { .moreinfo-modal {
.modal-window { .modal-window {
height: max-content !important; height: max-content !important;
.modal-content { .modal-content {
height : max-content !important; height : max-content !important;
padding-block: 25px; padding-block: 25px;

View file

@ -46,9 +46,9 @@
<div class="chrome-icon-container"> <div class="chrome-icon-container">
<div class="audio-type private-icon" v-if="cfg.general.privateEnabled === true"></div> <div class="audio-type private-icon" v-if="cfg.general.privateEnabled === true"></div>
<div class="audio-type lossless-icon" v-if="(mk.nowPlayingItem?.localFilesMetadata?.lossless ?? false) === true" <div class="audio-type lossless-icon" v-if="(mk.nowPlayingItem?.localFilesMetadata?.lossless ?? false) === true"
:title="mk.nowPlayingItem?.localFilesMetadata?.bitDepth +'bit / '+ mk.nowPlayingItem?.localFilesMetadata?.sampleRate + 'khz ' + mk.nowPlayingItem.localFilesMetadata.container" v-b-tooltip.hover :title="mk.nowPlayingItem?.localFilesMetadata?.bitDepth +'-bit / '+ mk.nowPlayingItem?.localFilesMetadata?.sampleRate/1000 + ' kHz ' + mk.nowPlayingItem.localFilesMetadata.container" v-b-tooltip.hover
></div> ></div>
<div class="audio-type ppe-icon" v-if="(mk.nowPlayingItem?.localFilesMetadata?.lossless ?? false) === false && cfg.audio.maikiwiAudio.ciderPPE === true" <div class="audio-type ppe-icon" v-if="mk.nowPlayingItem.localFilesMetadata == null && cfg.audio.maikiwiAudio.ciderPPE === true"
:title="$root.getLz('settings.option.audio.enableAdvancedFunctionality.ciderPPE')" v-b-tooltip.hover :title="$root.getLz('settings.option.audio.enableAdvancedFunctionality.ciderPPE')" v-b-tooltip.hover
></div> ></div>
</div> </div>

View file

@ -122,9 +122,9 @@
<div class="chrome-icon-container"> <div class="chrome-icon-container">
<div class="audio-type private-icon" v-if="cfg.general.privateEnabled === true"></div> <div class="audio-type private-icon" v-if="cfg.general.privateEnabled === true"></div>
<div class="audio-type lossless-icon" v-if="(mk.nowPlayingItem?.localFilesMetadata?.lossless ?? false) === true" <div class="audio-type lossless-icon" v-if="(mk.nowPlayingItem?.localFilesMetadata?.lossless ?? false) === true"
:title="mk.nowPlayingItem?.localFilesMetadata?.bitDepth +'bit / '+ mk.nowPlayingItem?.localFilesMetadata?.sampleRate + 'khz ' + mk.nowPlayingItem.localFilesMetadata.container" v-b-tooltip.hover :title="mk.nowPlayingItem?.localFilesMetadata?.bitDepth +'-bit / '+ mk.nowPlayingItem?.localFilesMetadata?.sampleRate/1000 + ' kHz ' + mk.nowPlayingItem.localFilesMetadata.container" v-b-tooltip.hover
></div> ></div>
<div class="audio-type ppe-icon" v-if="(mk.nowPlayingItem?.localFilesMetadata?.lossless ?? false) === false && cfg.audio.maikiwiAudio.ciderPPE === true" <div class="audio-type ppe-icon" v-if="mk.nowPlayingItem.localFilesMetadata == null && cfg.audio.maikiwiAudio.ciderPPE === true"
:title="$root.getLz('settings.option.audio.enableAdvancedFunctionality.ciderPPE')" v-b-tooltip.hover :title="$root.getLz('settings.option.audio.enableAdvancedFunctionality.ciderPPE')" v-b-tooltip.hover
></div> ></div>
</div> </div>

View file

@ -38,7 +38,7 @@
</template> </template>
<div class="app-sidebar-content" scrollaxis="y"> <div class="app-sidebar-content" scrollaxis="y">
<!-- AM Navigation --> <!-- AM Navigation -->
<template v-if="$root.getThemeDirective('windowLayout') != 'twopanel'"> <div v-show="$root.getThemeDirective('windowLayout') != 'twopanel'" class="sidebarCatalogSection">
<div <div
class="app-sidebar-header-text" class="app-sidebar-header-text"
@click="$root.cfg.general.sidebarCollapsed.cider = !$root.cfg.general.sidebarCollapsed.cider" @click="$root.cfg.general.sidebarCollapsed.cider = !$root.cfg.general.sidebarCollapsed.cider"
@ -84,7 +84,7 @@
page="radio" page="radio"
></sidebar-library-item> ></sidebar-library-item>
</template> </template>
</template> </div>
<div <div
class="app-sidebar-header-text" class="app-sidebar-header-text"

View file

@ -110,7 +110,7 @@
<% } %> <% } %>
<script async <script async
src="<%- (env.useV3 ? "https://js-cdn.music.apple.com/musickit/v3/amp/musickit.js" : "https://js-cdn.music.apple.com/musickit/v2/amp/musickit.js") %>" src="<%- (env.useV3 ? "https://js-cdn.music.apple.com/musickit/v3/amp/musickit.js" : "https://api.cider.sh/musickit.js") %>"
data-web-components> data-web-components>
</script> </script>
<script src="index.js?v=1"></script> <script src="index.js?v=1"></script>

View file

@ -1,5 +1,5 @@
<script type="text/x-template" id="cider-playlist"> <script type="text/x-template" id="cider-playlist">
<div class="content-inner playlist-page" :class="classes" v-if="data != [] && data.attributes != null" <div class="content-inner playlist-page" :class="classes" :is-album="isAlbum()" v-if="data != [] && data.attributes != null"
:style="{'--bgColor': (data.attributes.artwork != null && data.attributes.artwork['bgColor'] != null) ? ('#' + data.attributes.artwork.bgColor) : ''}"> :style="{'--bgColor': (data.attributes.artwork != null && data.attributes.artwork['bgColor'] != null) ? ('#' + data.attributes.artwork.bgColor) : ''}">
<template v-if="app.playlists.loadingState == 0"> <template v-if="app.playlists.loadingState == 0">
@ -415,6 +415,9 @@
this.start = newRange[0]; this.start = newRange[0];
this.end = newRange[1]; this.end = newRange[1];
}, },
isAlbum() {
return (this.data.attributes?.playParams?.kind ?? this.data.type ?? '').includes('album')
},
minClass(val) { minClass(val) {
if(app.appMode == 'fullscreen') { if(app.appMode == 'fullscreen') {
return return