Add toggle switches for cover/visualizer

This commit is contained in:
wvffle 2022-11-04 00:03:49 +00:00 committed by Kasper Seweryn
parent 8306eaaff6
commit aa7ded73f8
1 changed files with 19 additions and 2 deletions

View File

@ -181,8 +181,19 @@ const coverType = ref(CoverType.COVER_ART)
<milk-drop v-else-if="coverType === CoverType.MILK_DROP" />
<div class="cover-buttons">
<button class="ui secondary button">
<i class="icon ellipsis vertical" />
<button
v-if="coverType === CoverType.COVER_ART"
class="ui secondary button"
@click="coverType = CoverType.MILK_DROP"
>
<i class="icon signal" />
</button>
<button
v-else-if="coverType === CoverType.MILK_DROP"
class="ui secondary button"
@click="coverType = CoverType.COVER_ART"
>
<i class="icon image outline" />
</button>
</div>
</div>
@ -422,3 +433,9 @@ const coverType = ref(CoverType.COVER_ART)
</div>
</section>
</template>
<style scoped>
.icon.image::before {
content: "\f03e";
}
</style>