mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
Better initial layout when viewing library
This commit is contained in:
parent
c0726ade88
commit
92e54869e0
1 changed files with 8 additions and 13 deletions
|
|
@ -135,19 +135,20 @@ Raven.context(async () => {
|
|||
|
||||
__butterchurnOptions = getButterchurnOptions(startWithMilkdropHidden);
|
||||
|
||||
if (startWithMilkdropHidden) {
|
||||
if (library) {
|
||||
__initialWindowLayout = {
|
||||
[WINDOWS.MAIN]: { position: { x: 0, y: 0 } },
|
||||
[WINDOWS.EQUALIZER]: { position: { x: 0, y: 116 } },
|
||||
[WINDOWS.PLAYLIST]: { position: { x: 0, y: 232 }, size: [0, 4] },
|
||||
[WINDOWS.MEDIA_LIBRARY]: { position: { x: 275, y: 0 }, size: [7, 12] },
|
||||
};
|
||||
} else if (startWithMilkdropHidden) {
|
||||
__initialWindowLayout = {
|
||||
[WINDOWS.MAIN]: { position: { x: 0, y: 0 } },
|
||||
[WINDOWS.EQUALIZER]: { position: { x: 0, y: 116 } },
|
||||
[WINDOWS.PLAYLIST]: { position: { x: 0, y: 232 }, size: [0, 0] },
|
||||
[WINDOWS.MILKDROP]: { position: { x: 0, y: 348 }, size: [0, 0] },
|
||||
};
|
||||
if (library) {
|
||||
__initialWindowLayout[WINDOWS.MEDIA_LIBRARY] = {
|
||||
position: { x: 0, y: 348 },
|
||||
size: [0, 0],
|
||||
};
|
||||
}
|
||||
} else {
|
||||
__initialWindowLayout = {
|
||||
[WINDOWS.MAIN]: { position: { x: 0, y: 0 } },
|
||||
|
|
@ -155,12 +156,6 @@ Raven.context(async () => {
|
|||
[WINDOWS.PLAYLIST]: { position: { x: 0, y: 232 }, size: [0, 4] },
|
||||
[WINDOWS.MILKDROP]: { position: { x: 275, y: 0 }, size: [7, 12] },
|
||||
};
|
||||
if (library) {
|
||||
__initialWindowLayout[WINDOWS.MEDIA_LIBRARY] = {
|
||||
position: { x: 275, y: 0 },
|
||||
size: [7, 12],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById("butterchurn-share").style.display = "flex";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue