mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 03:59:53 +03:00
perf(TorrentCard): Darken selected item background (#1215)
This commit is contained in:
parent
44fd8d3861
commit
8214a0ebd4
2 changed files with 6 additions and 1 deletions
|
@ -64,7 +64,7 @@ const isTorrentSelected = computed(() => dashboardStore.isTorrentInSelection(pro
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<v-card :class="`sideborder ${torrent.state} pointer`" :color="isTorrentSelected ? `torrent-${torrent.state}` : undefined" width="100%" @click="onClick">
|
||||
<v-card :class="`sideborder ${torrent.state} pointer`" :color="isTorrentSelected ? `torrent-${torrent.state}-darken-3` : undefined" width="100%" @click="onClick">
|
||||
<v-card-title class="font-weight-bold">{{ torrent.name }}</v-card-title>
|
||||
<v-card-text>
|
||||
<div class="d-flex gap flex-wrap">
|
||||
|
|
|
@ -83,6 +83,11 @@ export default createVuetify({
|
|||
},
|
||||
theme: {
|
||||
defaultTheme: Theme.LIGHT,
|
||||
variations: {
|
||||
colors: ['torrent-error', 'torrent-missingFiles', 'torrent-uploading', 'torrent-forcedUP', 'torrent-pausedUP', 'torrent-queuedUP', 'torrent-stalledUP', 'torrent-checkingUP', 'torrent-allocating', 'torrent-downloading', 'torrent-forcedDL', 'torrent-metaDL', 'torrent-pausedDL', 'torrent-queuedDL', 'torrent-stalledDL', 'torrent-checkingDL', 'torrent-checkingResumeData', 'torrent-moving', 'torrent-unknown'],
|
||||
lighten: 3,
|
||||
darken: 3
|
||||
},
|
||||
themes: {
|
||||
lightTheme,
|
||||
darkTheme
|
||||
|
|
Loading…
Add table
Reference in a new issue