From df79eedf6989ab4c2913a23a7e72079bd719168b Mon Sep 17 00:00:00 2001 From: Sarper Akdemir Date: Sun, 8 Oct 2023 21:51:12 +0300 Subject: 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 --- toolkit/source/awt/vclxtoolkit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolkit') diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 7f6bd757b914..fc6b7b9df8d9 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -1781,7 +1781,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( rtl::Reference* ppNewCom } else if (aServiceName == "progressbar") { - pNewWindow = VclPtr::Create( pParent, nWinBits ); + pNewWindow = VclPtr::Create( pParent, nWinBits, ProgressBar::BarStyle::Progress ); *ppNewComp = new VCLXProgressBar; } else if (aServiceName == "filecontrol") -- cgit v1.2.3