basctl/source/basicide/baside3.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3c70cfc93bf196503a59188ac0d7b93f8c1fe4af
Author:     Rafael Lima <rafael.palma.l...@gmail.com>
AuthorDate: Sat Dec 17 12:05:42 2022 +0000
Commit:     Rafael Lima <rafael.palma.l...@gmail.com>
CommitDate: Wed Dec 21 19:20:12 2022 +0000

    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.tie...@documentfoundation.org>

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;

Reply via email to