From 7adaf44fb3d8b3ca81c3ad9ad757a57dc802b283 Mon Sep 17 00:00:00 2001 From: Tobias Hagemann Date: Tue, 8 Oct 2019 01:06:50 +0200 Subject: [PATCH] added progress bar --- main/ui/src/main/resources/css/dark_theme.css | 29 +++++++++++++++++++ .../ui/src/main/resources/css/light_theme.css | 29 +++++++++++++++++++ .../main/resources/fxml/migration_run.fxml | 3 +- 3 files changed, 60 insertions(+), 1 deletion(-) diff --git a/main/ui/src/main/resources/css/dark_theme.css b/main/ui/src/main/resources/css/dark_theme.css index f67c0c617..eb1191852 100644 --- a/main/ui/src/main/resources/css/dark_theme.css +++ b/main/ui/src/main/resources/css/dark_theme.css @@ -80,6 +80,7 @@ INDICATOR_BG: RED_5; PROGRESS_INDICATOR_BEGIN: GRAY_7; PROGRESS_INDICATOR_END: GRAY_5; + PROGRESS_BAR_BG: GRAY_2; PASSWORD_STRENGTH_INDICATOR_BG: GRAY_3; PASSWORD_STRENGTH_INDICATOR_BG_STRENGTH_0: RED_5; PASSWORD_STRENGTH_INDICATOR_BG_STRENGTH_1: ORANGE_5; @@ -780,3 +781,31 @@ .progress-indicator:indeterminate .segment11 { -fx-shape:"m 14.321262,6.5816808 c -0.824944,0.3797564 -0.10368,1.8484772 0.718513,1.3544717 L 18.786514,5.9486042 C 19.644992,5.4932031 18.92648,4.1387308 18.068001,4.5941315 z"; } + +/******************************************************************************* + * * + * ProgressBar * + * * + ******************************************************************************/ + +.progress-bar { + -fx-indeterminate-bar-length: 100; + -fx-indeterminate-bar-escape: true; + -fx-indeterminate-bar-flip: true; + -fx-indeterminate-bar-animation-time: 2; +} + +.progress-bar > .bar { + -fx-background-color: CONTROL_PRIMARY_BG_NORMAL; + -fx-background-radius: 4px; + -fx-padding: 0.5em; +} + +.progress-bar:indeterminate > .bar { + -fx-background-color: linear-gradient(to left, transparent, CONTROL_PRIMARY_BG_NORMAL); +} + +.progress-bar > .track { + -fx-background-color: PROGRESS_BAR_BG; + -fx-background-radius: 4px; +} diff --git a/main/ui/src/main/resources/css/light_theme.css b/main/ui/src/main/resources/css/light_theme.css index a7409724c..40b067d5d 100644 --- a/main/ui/src/main/resources/css/light_theme.css +++ b/main/ui/src/main/resources/css/light_theme.css @@ -80,6 +80,7 @@ INDICATOR_BG: RED_5; PROGRESS_INDICATOR_BEGIN: GRAY_2; PROGRESS_INDICATOR_END: GRAY_4; + PROGRESS_BAR_BG: GRAY_8; PASSWORD_STRENGTH_INDICATOR_BG: GRAY_5; PASSWORD_STRENGTH_INDICATOR_BG_STRENGTH_0: RED_5; PASSWORD_STRENGTH_INDICATOR_BG_STRENGTH_1: ORANGE_5; @@ -780,3 +781,31 @@ .progress-indicator:indeterminate .segment11 { -fx-shape:"m 14.321262,6.5816808 c -0.824944,0.3797564 -0.10368,1.8484772 0.718513,1.3544717 L 18.786514,5.9486042 C 19.644992,5.4932031 18.92648,4.1387308 18.068001,4.5941315 z"; } + +/******************************************************************************* + * * + * ProgressBar * + * * + ******************************************************************************/ + +.progress-bar { + -fx-indeterminate-bar-length: 100; + -fx-indeterminate-bar-escape: true; + -fx-indeterminate-bar-flip: true; + -fx-indeterminate-bar-animation-time: 2; +} + +.progress-bar > .bar { + -fx-background-color: CONTROL_PRIMARY_BG_NORMAL; + -fx-background-radius: 4px; + -fx-padding: 0.5em; +} + +.progress-bar:indeterminate > .bar { + -fx-background-color: linear-gradient(to left, transparent, CONTROL_PRIMARY_BG_NORMAL); +} + +.progress-bar > .track { + -fx-background-color: PROGRESS_BAR_BG; + -fx-background-radius: 4px; +} diff --git a/main/ui/src/main/resources/fxml/migration_run.fxml b/main/ui/src/main/resources/fxml/migration_run.fxml index a932b449f..207b011e3 100644 --- a/main/ui/src/main/resources/fxml/migration_run.fxml +++ b/main/ui/src/main/resources/fxml/migration_run.fxml @@ -3,6 +3,7 @@ + @@ -23,7 +24,7 @@ - +