From e2078e4444197e723aad6e052ca8a9e69266768b Mon Sep 17 00:00:00 2001 From: Jagadam Dinesh Reddy <dineshjagadam@gmail.com> Date: Fri, 11 Aug 2023 13:56:24 +0530 Subject: [PATCH] perf: adding darker color to files actively or force uploading (#1035) --- src/enums/vuetorrent/TorrentState.ts | 1 + src/models/Torrent.ts | 1 + src/plugins/vuetify.ts | 1 + src/styles/colors.scss | 1 + src/styles/styles.scss | 6 ++++++ 5 files changed, 10 insertions(+) diff --git a/src/enums/vuetorrent/TorrentState.ts b/src/enums/vuetorrent/TorrentState.ts index ffaed43c..c9232c71 100644 --- a/src/enums/vuetorrent/TorrentState.ts +++ b/src/enums/vuetorrent/TorrentState.ts @@ -1,6 +1,7 @@ export enum TorrentState { DOWNLOADING = 'Downloading', SEEDING = 'Seeding', + UPLOADING = 'Uploading', PAUSED = 'Paused', STALLED = 'Stalled', METADATA = 'Metadata', diff --git a/src/models/Torrent.ts b/src/models/Torrent.ts index 8fd8e50e..4dc275ac 100644 --- a/src/models/Torrent.ts +++ b/src/models/Torrent.ts @@ -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: diff --git a/src/plugins/vuetify.ts b/src/plugins/vuetify.ts index 20a8f58a..cf951ccb 100644 --- a/src/plugins/vuetify.ts +++ b/src/plugins/vuetify.ts @@ -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', diff --git a/src/styles/colors.scss b/src/styles/colors.scss index b7ce7fbc..6b3e959d 100644 --- a/src/styles/colors.scss +++ b/src/styles/colors.scss @@ -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; diff --git a/src/styles/styles.scss b/src/styles/styles.scss index 8f30bd6d..e91d24ed 100644 --- a/src/styles/styles.scss +++ b/src/styles/styles.scss @@ -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; }