Commit 729a967c authored by SpinShare's avatar SpinShare

added cooler title bar, added performance fixes

parent 39cd6c42
<template> <template>
<div id="app" :class="platform != 'darwin' ? 'app' : 'app-darwin'" tabindex="-1" v-on:keydown.esc="closeOverlays()"> <div id="app" :class="platform != 'darwin' ? 'app' : 'app-darwin'" tabindex="-1" v-on:keydown.esc="closeOverlays()">
<WindowTitleBar /> <!-- <WindowTitleBar /> -->
<main> <main>
<Navigation v-bind:downloadQueueCount="downloadQueue.length" v-bind:downloadOverlayShown="showDownloadOverlay" /> <Navigation v-bind:downloadQueueCount="downloadQueue.length" v-bind:downloadOverlayShown="showDownloadOverlay" />
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
}); });
this.$root.$on('download', (url) => { this.$root.$on('download', (url) => {
this.$data.showDownloadOverlay = true;
this.addToQueue(url); this.addToQueue(url);
}); });
this.$root.$on('showDownloadOverlay', () => { this.$root.$on('showDownloadOverlay', () => {
...@@ -222,7 +223,7 @@ ...@@ -222,7 +223,7 @@
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
background: #212529; background: #212529;
width: 5px; width: 8px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: #fff; background: #fff;
...@@ -233,9 +234,8 @@ ...@@ -233,9 +234,8 @@
} }
main { main {
display: grid; display: grid;
margin-left: 60px;
position: absolute; position: absolute;
top: 30px; top: 60px;
bottom: 0px; bottom: 0px;
left: 0px; left: 0px;
right: 0px; right: 0px;
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
transition: transform .5s; transition: transform .5s;
} }
.slideDownloadOverlay-enter, .slideDownloadOverlay-leave-to { .slideDownloadOverlay-enter, .slideDownloadOverlay-leave-to {
transform: translateX(-400px); transform: translateX(400px);
} }
.tooltip { .tooltip {
background: #000000; background: #000000;
...@@ -335,40 +335,14 @@ ...@@ -335,40 +335,14 @@
&[x-placement='top'] { &[x-placement='top'] {
margin-bottom: 5px; margin-bottom: 5px;
&:after {
top: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-color: rgba(0, 0, 0, 0);
border-top-color: #000000;
border-width: 8px;
margin-left: -8px;
}
} }
&[x-placement='right'] { &[x-placement='right'] {
margin-left: 5px; margin-left: 5px;
}
&:after { &[x-placement='down'] {
right: 100%; margin-bottom: 5px;
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-color: rgba(0, 0, 0, 0);
border-right-color: #000000;
border-width: 8px;
margin-top: -8px;
}
} }
} }
</style> </style>
...@@ -62,13 +62,11 @@ app.setAsDefaultProtocolClient("spinshare-user"); ...@@ -62,13 +62,11 @@ app.setAsDefaultProtocolClient("spinshare-user");
function createWindow () { function createWindow () {
win = new BrowserWindow({ win = new BrowserWindow({
title: "SpinSha.re", title: "SpinSha.re",
width: 1350, width: 1300,
height: 740, height: 800,
minHeight: 740, minHeight: 800,
minWidth: 1350, minWidth: 1300,
frame: false,
backgroundColor: '#212629', backgroundColor: '#212629',
titleBarStyle: 'hiddenInset',
webPreferences: { webPreferences: {
nodeIntegration: true nodeIntegration: true
} }
......
This diff is collapsed.
...@@ -62,9 +62,9 @@ ...@@ -62,9 +62,9 @@
.download-overlay { .download-overlay {
position: fixed; position: fixed;
z-index: 10; z-index: 10;
top: 30px; top: 60px;
bottom: 0px; bottom: 0px;
left: 60px; right: 0px;
width: 400px; width: 400px;
background: #383C3F; background: #383C3F;
display: grid; display: grid;
...@@ -151,6 +151,6 @@ ...@@ -151,6 +151,6 @@
} }
} }
.app-darwin .download-overlay { .app-darwin .download-overlay {
top: 40px; top: 100px;
} }
</style> </style>
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<style scoped lang="less"> <style scoped lang="less">
.song-item { .song-item {
background: rgba(255,255,255,0.1); background: rgba(255,255,255,0.1);
transition: 0.2s ease-in-out transform, 0.2s ease-in-out box-shadow; transition: 0.2s ease-in-out transform, 0.2s ease-in-out background, 0.2s ease-in-out box-shadow;
overflow: hidden; overflow: hidden;
border-radius: 6px; border-radius: 6px;
...@@ -168,8 +168,8 @@ ...@@ -168,8 +168,8 @@
} }
&:hover { &:hover {
transform: scale(1.1);
cursor: pointer; cursor: pointer;
background: rgba(255,255,255,0.2);
box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.4); box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.4);
& .song-cover { & .song-cover {
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<style scoped lang="less"> <style scoped lang="less">
.song-item-local { .song-item-local {
background: rgba(255,255,255,0.1); background: rgba(255,255,255,0.1);
transition: 0.2s ease-in-out transform, 0.2s ease-in-out box-shadow; transition: 0.2s ease-in-out transform, 0.2s ease-in-out background, 0.2s ease-in-out box-shadow;
overflow: hidden; overflow: hidden;
border-radius: 6px; border-radius: 6px;
...@@ -145,8 +145,8 @@ ...@@ -145,8 +145,8 @@
} }
&:not(.song-item-onlylocal):hover { &:not(.song-item-onlylocal):hover {
transform: scale(1.1);
cursor: pointer; cursor: pointer;
background: rgba(255,255,255,0.2);
box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.4); box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.4);
& .song-cover { & .song-cover {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment