fix color

This commit is contained in:
jxxghp
2023-07-09 07:30:16 +08:00
parent b8c9602d0c
commit 5b0342482c

View File

@@ -91,13 +91,13 @@ const downloadTorrentFile = async () => {
// 促销Chip颜色 // 促销Chip颜色
const getVolumeFactorColor = (downloadVolume: number, uploadVolume: number) => { const getVolumeFactorColor = (downloadVolume: number, uploadVolume: number) => {
if (downloadVolume === 0) { if (downloadVolume === 0) {
return "text-white bg-green-500"; return "text-white bg-lime-500";
} else if (downloadVolume < 1) { } else if (downloadVolume < 1) {
return "text-white bg-sky-500"; return "text-white bg-green-500";
} else if (uploadVolume != 1) { } else if (uploadVolume != 1) {
return "text-white bg-blue-700"; return "text-white bg-sky-500";
} else { } else {
return "text-white"; return "text-white bg-gray-500";
} }
}; };
@@ -160,8 +160,7 @@ onMounted(() => {
v-if="meta?.edition" v-if="meta?.edition"
variant="elevated" variant="elevated"
size="small" size="small"
color="error" class="me-1 mb-1 bg-red-500"
class="me-1 mb-1"
> >
{{ meta?.edition }}</VChip {{ meta?.edition }}</VChip
> >
@@ -169,8 +168,7 @@ onMounted(() => {
v-if="meta?.resource_pix" v-if="meta?.resource_pix"
variant="elevated" variant="elevated"
size="small" size="small"
color="error" class="me-1 mb-1 bg-red-500"
class="me-1 mb-1"
> >
{{ meta?.resource_pix }} {{ meta?.resource_pix }}
</VChip> </VChip>
@@ -178,7 +176,7 @@ onMounted(() => {
v-if="meta?.video_encode" v-if="meta?.video_encode"
variant="elevated" variant="elevated"
size="small" size="small"
class="me-1 mb-1 text-white bg-indigo-500" class="me-1 mb-1 text-white bg-orange-500"
> >
{{ meta?.video_encode }} {{ meta?.video_encode }}
</VChip> </VChip>
@@ -186,8 +184,7 @@ onMounted(() => {
v-if="torrent?.size" v-if="torrent?.size"
variant="elevated" variant="elevated"
size="small" size="small"
color="warning" class="me-1 mb-1 bg-yellow-500"
class="me-1 mb-1"
> >
{{ formatFileSize(torrent?.size) }} {{ formatFileSize(torrent?.size) }}
</VChip> </VChip>
@@ -195,8 +192,7 @@ onMounted(() => {
v-if="meta?.resource_team" v-if="meta?.resource_team"
variant="elevated" variant="elevated"
size="small" size="small"
color="info" class="me-1 mb-1 bg-cyan-500"
class="me-1 mb-1"
> >
{{ meta?.resource_team }} {{ meta?.resource_team }}
</VChip> </VChip>