mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
remove background colors
- try to imitate Google's design of things it makes UI look declattered -
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@
|
|||||||
>
|
>
|
||||||
<LeftSidebar />
|
<LeftSidebar />
|
||||||
<NavBar />
|
<NavBar />
|
||||||
<div id="acontent" class="rounded">
|
<div id="acontent">
|
||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
<NowPlayingRight />
|
<NowPlayingRight />
|
||||||
|
|||||||
@@ -86,7 +86,6 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: 1fr max-content;
|
grid-template-rows: 1fr max-content;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
background-color: $black;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.b-bar {
|
.b-bar {
|
||||||
|
|||||||
@@ -43,6 +43,10 @@
|
|||||||
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.425);
|
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.425);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.border {
|
||||||
|
border: 1px solid $gray3;
|
||||||
|
}
|
||||||
|
|
||||||
.heading {
|
.heading {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// colors
|
// colors
|
||||||
|
|
||||||
$body: #0f1218;
|
$body: #202124;
|
||||||
$separator: #ffffff2f;
|
$separator: #ffffff2f;
|
||||||
$highlight-blue: #006eff;
|
$highlight-blue: #006eff;
|
||||||
$darkestblue: #234ece;
|
$darkestblue: #234ece;
|
||||||
@@ -45,6 +45,7 @@ $secondary: $gray5;
|
|||||||
$danger: $red;
|
$danger: $red;
|
||||||
$track-hover: $gray4;
|
$track-hover: $gray4;
|
||||||
$context: $gray;
|
$context: $gray;
|
||||||
|
$playlist-card-bg: #46474C;
|
||||||
|
|
||||||
// SVG COLORS
|
// SVG COLORS
|
||||||
$default: $accent;
|
$default: $accent;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="table rounded"
|
class="table rounded border"
|
||||||
v-if="tracks.length"
|
v-if="tracks.length"
|
||||||
ref="tracklistElem"
|
ref="tracklistElem"
|
||||||
:class="{
|
:class="{
|
||||||
@@ -189,7 +189,6 @@ function getTrackList() {
|
|||||||
.table {
|
.table {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
background-color: $black;
|
|
||||||
padding: $small 0;
|
padding: $small 0;
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="l-sidebar rounded">
|
<div class="l-sidebar rounded border">
|
||||||
<div class="withlogo">
|
<div class="withlogo">
|
||||||
<Logo />
|
<Logo />
|
||||||
<Navigation />
|
<Navigation />
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div id="logo-container"
|
<div id="logo-container"
|
||||||
>
|
>
|
||||||
<router-link :to="{ name: 'Home' }">
|
<router-link :to="{ name: 'Home' }">
|
||||||
<div id="logo" class="rounded"></div
|
<div id="logo"></div
|
||||||
></router-link>
|
></router-link>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -19,5 +19,6 @@
|
|||||||
background-image: url(./../assets/images/logo.webp);
|
background-image: url(./../assets/images/logo.webp);
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
@include ximage;
|
@include ximage;
|
||||||
|
border-radius: $medium;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="p-card new-playlist-card rounded bg-primary"
|
class="p-card new-playlist-card rounded"
|
||||||
@click="Modal.showNewPlaylistModal()"
|
@click="Modal.showNewPlaylistModal()"
|
||||||
>
|
>
|
||||||
<PlusSvg />
|
<PlusSvg />
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
<router-link
|
<router-link
|
||||||
:to="{ name: 'PlaylistView', params: { pid: props.playlist.playlistid } }"
|
:to="{ name: 'PlaylistView', params: { pid: props.playlist.playlistid } }"
|
||||||
:playlist="props.playlist"
|
:playlist="props.playlist"
|
||||||
class="p-card rounded bg-primary"
|
class="p-card rounded"
|
||||||
>
|
>
|
||||||
<img :src="imguri + props.playlist.thumb" class="rounded" />
|
<img :src="imguri + props.playlist.thumb"/>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="name ellip">{{ props.playlist.name }}</div>
|
<div class="name ellip">{{ props.playlist.name }}</div>
|
||||||
<div class="count">
|
<div class="count">
|
||||||
@@ -32,14 +32,16 @@ const props = defineProps<{
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.p-card {
|
.p-card {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 1rem;
|
padding: $medium;
|
||||||
transition: all 0.25s ease;
|
transition: all 0.25s ease;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background-color: $playlist-card-bg;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
border-radius: $medium;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="r-sidebar rounded"
|
class="r-sidebar rounded border"
|
||||||
:style="{
|
:style="{
|
||||||
marginBottom: !settings.use_alt_np ? '-1rem' : '',
|
marginBottom: !settings.use_alt_np ? '-1rem' : '',
|
||||||
}"
|
}"
|
||||||
@@ -35,7 +35,6 @@ const settings = useSettingsStore();
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.r-sidebar {
|
.r-sidebar {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: $black;
|
|
||||||
|
|
||||||
.grid {
|
.grid {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="gsearch-input">
|
<div id="gsearch-input">
|
||||||
<div id="ginner" tabindex="0" class="bg-primary rounded-sm">
|
<div id="ginner" tabindex="0" class="bg-primary">
|
||||||
<input
|
<input
|
||||||
id="globalsearch"
|
id="globalsearch"
|
||||||
v-model="search.query"
|
v-model="search.query"
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
/>
|
/>
|
||||||
<SearchSvg />
|
<SearchSvg />
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons rounded-sm bg-primary">
|
<div class="buttons bg-primary">
|
||||||
<button
|
<button
|
||||||
@click="tabs.switchToQueue"
|
@click="tabs.switchToQueue"
|
||||||
v-if="tabs.current !== tabs.tabs.queue"
|
v-if="tabs.current !== tabs.tabs.queue"
|
||||||
@@ -58,6 +58,10 @@ function removeFocusedClass() {
|
|||||||
grid-template-columns: 1fr max-content;
|
grid-template-columns: 1fr max-content;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
|
||||||
|
& > * {
|
||||||
|
border-radius: $medium;
|
||||||
|
}
|
||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-auto-flow: column;
|
grid-auto-flow: column;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ap-container rounded">
|
<div class="ap-container">
|
||||||
<div id="ap-page">
|
<div id="ap-page">
|
||||||
<header class="ap-page-header" ref="apheader">
|
<header class="ap-page-header" ref="apheader">
|
||||||
<slot name="header"></slot>
|
<slot name="header"></slot>
|
||||||
|
|||||||
@@ -28,10 +28,13 @@ function scrollOnLoad() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default defineStore("search", () => {
|
export default defineStore("search", () => {
|
||||||
|
// @ts-ignore
|
||||||
const query = useDebouncedRef(null, 600);
|
const query = useDebouncedRef(null, 600);
|
||||||
const { startLoading, stopLoading } = useLoaderStore();
|
const { startLoading, stopLoading } = useLoaderStore();
|
||||||
|
|
||||||
const currentTab = ref("tracks");
|
const currentTab = ref("tracks");
|
||||||
|
const RESULT_COUNT = 6;
|
||||||
|
|
||||||
const loadCounter = reactive({
|
const loadCounter = reactive({
|
||||||
tracks: 0,
|
tracks: 0,
|
||||||
albums: 0,
|
albums: 0,
|
||||||
@@ -98,7 +101,7 @@ export default defineStore("search", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadTracks() {
|
function loadTracks() {
|
||||||
loadCounter.tracks += 12;
|
loadCounter.tracks += RESULT_COUNT;
|
||||||
|
|
||||||
startLoading();
|
startLoading();
|
||||||
loadMoreTracks(loadCounter.tracks)
|
loadMoreTracks(loadCounter.tracks)
|
||||||
@@ -111,7 +114,7 @@ export default defineStore("search", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadAlbums() {
|
function loadAlbums() {
|
||||||
loadCounter.albums += 12;
|
loadCounter.albums += RESULT_COUNT;
|
||||||
|
|
||||||
startLoading();
|
startLoading();
|
||||||
loadMoreAlbums(loadCounter.albums)
|
loadMoreAlbums(loadCounter.albums)
|
||||||
@@ -128,7 +131,7 @@ export default defineStore("search", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadArtists() {
|
function loadArtists() {
|
||||||
loadCounter.artists += 12;
|
loadCounter.artists += RESULT_COUNT;
|
||||||
|
|
||||||
startLoading();
|
startLoading();
|
||||||
loadMoreArtists(loadCounter.artists)
|
loadMoreArtists(loadCounter.artists)
|
||||||
@@ -143,7 +146,9 @@ export default defineStore("search", () => {
|
|||||||
watch(
|
watch(
|
||||||
() => query.value,
|
() => query.value,
|
||||||
(newQuery) => {
|
(newQuery) => {
|
||||||
|
// reset all counters
|
||||||
for (const key in loadCounter) {
|
for (const key in loadCounter) {
|
||||||
|
// @ts-ignore
|
||||||
loadCounter[key] = 0;
|
loadCounter[key] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user