From 2556807166660978c8772de453b28250a74e1664 Mon Sep 17 00:00:00 2001 From: Benedict Aas Date: Tue, 24 Oct 2017 19:43:43 +0100 Subject: [PATCH] feat(GUI): add optional progress bars to drive-selector drives (#1800) We show a progress bar for any drive objects with a `progress` field that isn't falsy, e.g. `undefined` or `0`. Changelog-Type: minor Changelog-Entry: Add optional progress bars to drive-selector drives. --- .../styles/_drive-selector.scss | 20 +++++++++++++++++++ .../templates/drive-selector-modal.tpl.html | 1 + lib/gui/css/main.css | 13 ++++++++++++ scripts/html-lint.js | 5 ++++- 4 files changed, 38 insertions(+), 1 deletion(-) diff --git a/lib/gui/components/drive-selector/styles/_drive-selector.scss b/lib/gui/components/drive-selector/styles/_drive-selector.scss index 0536a519..1a1a98a0 100644 --- a/lib/gui/components/drive-selector/styles/_drive-selector.scss +++ b/lib/gui/components/drive-selector/styles/_drive-selector.scss @@ -71,6 +71,26 @@ &[disabled] .list-group-item-heading { color: $palette-theme-light-soft-foreground; } + + progress { + appearance: none; + width: 100%; + height: 2.5px; + border: none; + border-radius: 50% 50%; + } + + progress::-webkit-progress-bar { + background-color: $palette-theme-default-background; + border: none; + outline: none; + } + + progress::-webkit-progress-value { + border-bottom: 1px solid darken($palette-theme-primary-background, 15); + background-color: $palette-theme-primary-background; + } + } .list-group-item-heading { diff --git a/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html b/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html index 63557206..ce8a1a07 100644 --- a/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html +++ b/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html @@ -32,6 +32,7 @@ + { _.each(result.failed, (failure) => {