diff options
author | Sarper Akdemir <sarper.akdemir.extern@allotropia.de> | 2023-10-08 21:51:12 +0300 |
---|---|---|
committer | Sarper Akdemir <sarper.akdemir.extern@allotropia.de> | 2023-10-30 08:17:18 +0100 |
commit | df79eedf6989ab4c2913a23a7e72079bd719168b (patch) | |
tree | 429b451dd9c48be33aedf8e9a67313b9c156cef7 /vcl/inc/salvtables.hxx | |
parent | 3d5cafbe1727a95a54eb4a65d98d6d79ec46f0c8 (diff) |
tdf#157518: vcl: Introduce vcl control LevelBar
Introduces LevelBar that shares implementation with
Progress(Bar).
LevelBar is to be as a level indicator, e.g. password strength
level. Currently with native backends for gtk and Windows.
Currently, except on gtk - the colors of the bar at different
levels are hardcoded and not dependent on any kind of themeing.
On Windows it follows the styling of progress bar of type "Meter"
according to the uxguide:
https://learn.microsoft.com/en-us/windows/win32/uxguide/progress-bars#meters
Change-Id: Id772cda23615e9582463bf589e4674fd4588c864
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157826
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir.extern@allotropia.de>
Diffstat (limited to 'vcl/inc/salvtables.hxx')
-rw-r--r-- | vcl/inc/salvtables.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx index 8648db8e5143..4074e097a4f4 100644 --- a/vcl/inc/salvtables.hxx +++ b/vcl/inc/salvtables.hxx @@ -91,6 +91,8 @@ public: virtual std::unique_ptr<weld::ProgressBar> weld_progress_bar(const OUString& id) override; + virtual std::unique_ptr<weld::LevelBar> weld_level_bar(const OUString& id) override; + virtual std::unique_ptr<weld::Spinner> weld_spinner(const OUString& id) override; virtual std::unique_ptr<weld::Image> weld_image(const OUString& id) override; |