First pass implementation of dynamic progress bar

This commit is contained in:
Pranav Srinivas Kumar
2020-02-21 22:40:16 +05:30
parent 0ace816e52
commit 5e75c285fe
6 changed files with 267 additions and 2 deletions

View File

@@ -85,7 +85,8 @@ enum class ProgressBarOption {
saved_start_time,
foreground_color,
spinner_show,
spinner_states
spinner_states,
hide_bar_when_complete
};
template <typename T, ProgressBarOption Id> struct Setting {
@@ -196,5 +197,7 @@ using ForegroundColor = details::Setting<Color, details::ProgressBarOption::fore
using ShowSpinner = details::BooleanSetting<details::ProgressBarOption::spinner_show>;
using SpinnerStates =
details::Setting<std::vector<std::string>, details::ProgressBarOption::spinner_states>;
using HideBarWhenComplete =
details::BooleanSetting<details::ProgressBarOption::hide_bar_when_complete>;
} // namespace option
} // namespace indicators