1
0
Fork 0
mirror of https://github.com/VueTorrent/VueTorrent.git synced 2025-03-25 02:50:57 +03:00

perf: adding darker color to files actively or force uploading ()

This commit is contained in:
Jagadam Dinesh Reddy 2023-08-11 13:56:24 +05:30 committed by GitHub
parent 4cd7772502
commit e2078e4444
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 0 deletions
src

View file

@ -1,6 +1,7 @@
export enum TorrentState {
DOWNLOADING = 'Downloading',
SEEDING = 'Seeding',
UPLOADING = 'Uploading',
PAUSED = 'Paused',
STALLED = 'Stalled',
METADATA = 'Metadata',

View file

@ -126,6 +126,7 @@ export default class Torrent {
return VtTorrentState.METADATA
case QbitTorrentState.FORCED_UP:
case QbitTorrentState.UPLOADING:
return VtTorrentState.UPLOADING
case QbitTorrentState.STALLED_UP:
return VtTorrentState.SEEDING
case QbitTorrentState.PAUSED_DL:

View file

@ -31,6 +31,7 @@ const variables = {
'torrent-errored': '#f83e70',
'torrent-paused': '#9CA3AF',
'torrent-queued': '#2e5eaa',
'torrent-uploading': '#4e79e6',
'torrent-seeding': '#4ecde6',
'torrent-checking': '#ff7043',
'torrent-stalled': '#4ADE80',

View file

@ -15,6 +15,7 @@ $torrent-fail: #f83e70;
$torrent-errored: $torrent-fail;
$torrent-paused: #9ca3af;
$torrent-queued: #2e5eaa;
$torrent-uploading: #4e79e6;
$torrent-seeding: #4ecde6;
$torrent-checking: #ff7043;
$torrent-stalled: #4ade80;

View file

@ -21,6 +21,9 @@ $sideborder-margin: 6px;
.sideborder.seeding {
border-left: #{$sideborder-margin} solid #{$torrent-seeding};
}
.sideborder.uploading {
border-left: #{$sideborder-margin} solid #{$torrent-uploading};
}
.sideborder.checking {
border-left: #{$sideborder-margin} solid #{$torrent-checking};
}
@ -54,6 +57,9 @@ $sideborder-margin: 6px;
.v-chip.seeding {
background: #{$torrent-seeding} !important;
}
.v-chip.uploading {
background: #{$torrent-uploading} !important;
}
.v-chip.checking {
background: #{$torrent-checking} !important;
}