From 033bdf7908ab401470b3e13caa9e11fe0076e687 Mon Sep 17 00:00:00 2001 From: DC Date: Fri, 2 Sep 2016 12:08:57 -0700 Subject: [PATCH 1/3] Design: removed hover/select brightness All those gradients and brighness filters toggling on and off were getting annoying --- src/renderer/pages/torrent-list-page.js | 6 ++---- static/main.css | 8 -------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/renderer/pages/torrent-list-page.js b/src/renderer/pages/torrent-list-page.js index 69eae4f0..a8220a9f 100644 --- a/src/renderer/pages/torrent-list-page.js +++ b/src/renderer/pages/torrent-list-page.js @@ -46,11 +46,9 @@ module.exports = class TorrentList extends React.Component { // Background image: show some nice visuals, like a frame from the movie, if possible const style = {} if (torrentSummary.posterFileName) { - const gradient = isSelected - ? 'linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%)' - : 'linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%)' + const gradient = 'linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%)' const posterPath = TorrentSummary.getPosterPath(torrentSummary) - style.backgroundImage = gradient + `, url('${posterPath}')` + style.backgroundImage = `${gradient}, url('${posterPath}')` } // Foreground: name of the torrent, basic info like size, play button, diff --git a/static/main.css b/static/main.css index 35f7a0af..058ad804 100644 --- a/static/main.css +++ b/static/main.css @@ -350,10 +350,6 @@ textarea, border-bottom: 1px solid rgb(20, 20, 20); } -.torrent:hover { - -webkit-filter: brightness(1.1); -} - .torrent .metadata { position: absolute; top: 25px; @@ -538,10 +534,6 @@ body.drag .app::after { height: 28px; } -.torrent-details tr:hover { - background-color: rgba(200, 200, 200, 0.3); -} - .torrent-details td { overflow: hidden; padding: 0; From ca6a7917cedabca810a5a7cf0cc761253661af1c Mon Sep 17 00:00:00 2001 From: DC Date: Fri, 2 Sep 2016 12:25:55 -0700 Subject: [PATCH 2/3] Design: progress bar styling --- static/main.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/main.css b/static/main.css index 058ad804..808d1d68 100644 --- a/static/main.css +++ b/static/main.css @@ -458,6 +458,15 @@ textarea, progress { width: 60px; margin-right: 8px; + -webkit-appearance: none; +} + +progress::-webkit-progress-bar { + background-color: #888; +} + +progress::-webkit-progress-value { + background-color: #eee; } /* @@ -511,6 +520,7 @@ body.drag .app::after { /* * TORRENT LIST: EXPANDED TORRENT DETAILS */ + .torrent.selected { height: auto; } From b8effffa96d45132ccc01509f4a6cda91ea6b16a Mon Sep 17 00:00:00 2001 From: DC Date: Fri, 2 Sep 2016 13:53:51 -0700 Subject: [PATCH 3/3] Delete unused defaultPlayFileIndex --- src/renderer/lib/migrations.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/renderer/lib/migrations.js b/src/renderer/lib/migrations.js index 517902d8..d7383d8a 100644 --- a/src/renderer/lib/migrations.js +++ b/src/renderer/lib/migrations.js @@ -35,6 +35,10 @@ function run (state) { migrate_0_12_0(state.saved) } + if (semver.lt(version, '0.14.0')) { + migrate_0_14_0(state.saved) + } + // Config is now on the new version state.saved.version = config.APP_VERSION } @@ -135,3 +139,9 @@ function migrate_0_12_0 (saved) { } }) } + +function migrate_0_14_0 (saved) { + saved.torrents.forEach(function (ts) { + delete ts.defaultPlayFileIndex + }) +}