refactor colors

This commit is contained in:
geoffrey45
2022-03-15 10:38:53 +03:00
parent 33a9aa2c30
commit f11005e523
22 changed files with 157 additions and 128 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
name: 'AlbumView',
params: { album: album.album, artist: album.artist },
}"
class="result-item shadow-sm"
class="result-item"
>
<div class="_idk">
<div
@@ -34,10 +34,10 @@ export default {
padding: $small;
border-radius: 0.75rem;
text-align: left !important;
border: solid 2px transparent;
background-color: $gray;
color: #ffffffde !important;
transition: all 0.5s ease;
// border: solid 1px $gray3;
._idk {
position: relative;
+1 -4
View File
@@ -108,10 +108,7 @@ const current = state.current;
</script>
<style lang="scss">
.context-on {
background-color: $gray4;
color: $white !important;
}
//
.songlist-item {
display: grid;
+20 -4
View File
@@ -2,9 +2,12 @@
<div
class="track-item h-1"
@click="playThis(props.track)"
:class="{
currentInQueue: current.trackid === props.track.trackid,
}"
:class="[
{
currentInQueue: current.trackid === props.track.trackid,
},
{ 'context-on': context_on },
]"
@contextmenu="showContextMenu"
>
<div
@@ -39,12 +42,20 @@ import useContextStore from "@/stores/context.js";
import trackContext from "../../composables/track_context";
const contextStore = useContextStore();
const context_on = ref(false);
const showContextMenu = (e) => {
e.preventDefault();
e.stopPropagation();
contextStore.showContextMenu(e, trackContext(props.track));
context_on.value = true;
contextStore.$subscribe((mutation, state) => {
if (!state.visible) {
context_on.value = false;
}
});
};
const props = defineProps({
track: Object,
@@ -66,6 +77,11 @@ const playThis = (song) => {
background-color: $gray3;
}
.context-on {
background-color: $gray4;
color: $white !important;
}
.track-item {
width: 26.55rem;
display: flex;
@@ -77,7 +93,7 @@ const playThis = (song) => {
&:hover {
cursor: pointer;
background-color: $gray5 !important;
background-color: $gray4 !important;
}
hr {