From e2241cf7fd0b49ad41fc7ec0fb15c7237e82da48 Mon Sep 17 00:00:00 2001 From: Daniel Shleifman Date: Sat, 26 Jun 2021 22:28:50 +0300 Subject: [PATCH] refactor --- web/src/components/Add/AddDialog.jsx | 2 +- .../DetailedView/index.jsx | 4 +++- .../TorrentCache/snakeSettings.js | 13 +++++++------ .../DialogTorrentDetailsContent/index.jsx | 4 ++-- .../components/DialogTorrentDetailsContent/style.js | 3 ++- web/src/components/TorrentList/index.jsx | 2 +- web/src/style/colors.js | 4 +++- web/src/style/materialUISetup.js | 3 +++ 8 files changed, 22 insertions(+), 13 deletions(-) diff --git a/web/src/components/Add/AddDialog.jsx b/web/src/components/Add/AddDialog.jsx index 65262cf..69431d9 100644 --- a/web/src/components/Add/AddDialog.jsx +++ b/web/src/components/Add/AddDialog.jsx @@ -268,7 +268,7 @@ export default function AddDialog({ - diff --git a/web/src/components/DialogTorrentDetailsContent/DetailedView/index.jsx b/web/src/components/DialogTorrentDetailsContent/DetailedView/index.jsx index 926712e..4222d7d 100644 --- a/web/src/components/DialogTorrentDetailsContent/DetailedView/index.jsx +++ b/web/src/components/DialogTorrentDetailsContent/DetailedView/index.jsx @@ -42,7 +42,9 @@ export default function DetailedView({ - {t('Cache')} + + {t('Cache')} + diff --git a/web/src/components/DialogTorrentDetailsContent/TorrentCache/snakeSettings.js b/web/src/components/DialogTorrentDetailsContent/TorrentCache/snakeSettings.js index 4f79f27..b2fc35b 100644 --- a/web/src/components/DialogTorrentDetailsContent/TorrentCache/snakeSettings.js +++ b/web/src/components/DialogTorrentDetailsContent/TorrentCache/snakeSettings.js @@ -1,16 +1,17 @@ +import { rgba } from 'polished' import { mainColors } from 'style/colors' export const snakeSettings = { dark: { default: { - borderWidth: 1, + borderWidth: 2, pieceSize: 14, gapBetweenPieces: 3, - borderColor: mainColors.dark.primary, - completeColor: mainColors.dark.primary, - backgroundColor: '#fff', - progressColor: '#545a5e', - readerColor: '#fff', + borderColor: mainColors.dark.secondary, + completeColor: rgba(mainColors.dark.primary, 0.65), + backgroundColor: '#f1eff3', + progressColor: mainColors.dark.secondary, + readerColor: '#000', rangeColor: '#cda184', }, mini: { diff --git a/web/src/components/DialogTorrentDetailsContent/index.jsx b/web/src/components/DialogTorrentDetailsContent/index.jsx index 3df8f30..7db86dd 100644 --- a/web/src/components/DialogTorrentDetailsContent/index.jsx +++ b/web/src/components/DialogTorrentDetailsContent/index.jsx @@ -33,7 +33,7 @@ import { isFilePlayable } from './helpers' const Loader = () => (
- +
) @@ -225,7 +225,7 @@ export default function DialogTorrentDetailsContent({ closeDialog, torrent }) { {seasonAmount?.length > 1 && ( <> {t('SelectSeason')} - + {seasonAmount.map(season => (