summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2022-12-17 12:05:42 +0000
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-12-21 23:59:04 +0000
commit29c2a583c6e82a9281794b147db94c945d398cac (patch)
tree9fbdff43b0c05add84b8b64c2da5ebcfc01f65f3 /basctl
parentf3e521c819dcbea43ff3e38912ee36165d10c897 (diff)
tdf#152617 Fix color of controls in the Dialog Editor
While editing dialogs in the Basic IDE the background of controls as labels, radio buttons and checkboxes is wrong. They're black in dark themes and white in light themes. The correct color should be FaceColor to make it have the same backround as the window. Change-Id: If436b0034dd7a665fc779e0df793703562adb5a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144363 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> (cherry picked from commit 3c70cfc93bf196503a59188ac0d7b93f8c1fe4af) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144715 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside3.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index 2b3bbe3d8733..33528679b2fd 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -1234,7 +1234,7 @@ void DialogWindow::InitSettings()
SetTextColor( rStyleSettings.GetFieldTextColor() );
SetTextFillColor();
- SetBackground( rStyleSettings.GetFieldColor() );
+ SetBackground(rStyleSettings.GetFaceColor());
}
css::uno::Reference< css::accessibility::XAccessible > DialogWindow::CreateAccessible()
@@ -1246,6 +1246,7 @@ OString DialogWindow::GetHid () const
{
return HID_BASICIDE_DIALOGWINDOW;
}
+
ItemType DialogWindow::GetType () const
{
return TYPE_DIALOG;