mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-10-22 18:56:38 +03:00
fix(pieceCanvas): Fix color names after #1740 (#1745)
Some checks are pending
Build project and release / Run Release Please action (push) Waiting to run
Build project and release / Build VueTorrent (vuetorrent-build, ./vuetorrent, build) (push) Waiting to run
Build project and release / Build VueTorrent (vuetorrent-demo, ./vuetorrent-demo, build-demo) (push) Waiting to run
Build project and release / Push to nightly branch (push) Blocked by required conditions
Build project and release / Push to demo repo (push) Blocked by required conditions
Build project and release / Upload release to GitHub (push) Blocked by required conditions
Build project and release / Push to latest branch (push) Blocked by required conditions
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
Some checks are pending
Build project and release / Run Release Please action (push) Waiting to run
Build project and release / Build VueTorrent (vuetorrent-build, ./vuetorrent, build) (push) Waiting to run
Build project and release / Build VueTorrent (vuetorrent-demo, ./vuetorrent-demo, build-demo) (push) Waiting to run
Build project and release / Push to nightly branch (push) Blocked by required conditions
Build project and release / Push to demo repo (push) Blocked by required conditions
Build project and release / Upload release to GitHub (push) Blocked by required conditions
Build project and release / Push to latest branch (push) Blocked by required conditions
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
This commit is contained in:
parent
63dd06fab1
commit
60beb8a387
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ async function renderCanvas() {
|
||||||
let newColor = ''
|
let newColor = ''
|
||||||
|
|
||||||
if (state === PieceState.DOWNLOADING) newColor = theme.current.value.colors['torrent-downloading']
|
if (state === PieceState.DOWNLOADING) newColor = theme.current.value.colors['torrent-downloading']
|
||||||
else if (state === PieceState.DOWNLOADED) newColor = theme.current.value.colors['torrent-pausedUP']
|
else if (state === PieceState.DOWNLOADED) newColor = theme.current.value.colors['torrent-ul_paused']
|
||||||
else if (state === PieceState.MISSING && selectedRanges.intersect_any([i, i])) newColor = theme.current.value.colors['torrent-pausedDL']
|
else if (state === PieceState.MISSING && selectedRanges.intersect_any([i, i])) newColor = theme.current.value.colors['torrent-dl_paused']
|
||||||
|
|
||||||
if (newColor === color) {
|
if (newColor === color) {
|
||||||
++rectWidth
|
++rectWidth
|
||||||
|
|
Loading…
Reference in a new issue