svx/source/dialog/weldeditview.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8bb38e1b3f1ba1d9c563598d161230fdf27e4685
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Mon Oct 14 12:22:32 2024 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Tue Oct 15 08:10:36 2024 +0200

    tdf#163397 svx: Use field color for WeldEditView bg
    
    Use field color instead of the window color
    for the WeldEditView background.
    
    This is consistent with the color used for the other
    text edit controls like the VCL Edit, see
    Edit::ApplySettings.
    
    While field and window color are the same color for e.g.
    gtk3 or gen, they're different colors for macOS and
    Qt-based VCL plugins, at least when using the Breeze
    style that's default on KDE Plasma.
    
    With this commit in place, the background color becomes
    white for macOS and Linux with the qt5 VCL plugin with the
    Breeze style.
    
    For the latter, this had changed to light grey with
    
        commit 9dd26d7a2cc6b314dcc0b52000e0475bb4ced57d
        Date:   Thu Sep 5 01:37:44 2024 +0530
    
            Libreoffice Theme Part 0: Read correct colors from qt based 
VCL_PLUGINS
    
    Change-Id: I42232fd07891046b18cc7f112118cac673e2090d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174890
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>
    Tested-by: Jenkins

diff --git a/svx/source/dialog/weldeditview.cxx 
b/svx/source/dialog/weldeditview.cxx
index 14767992e9c2..2f1ff16a862d 100644
--- a/svx/source/dialog/weldeditview.cxx
+++ b/svx/source/dialog/weldeditview.cxx
@@ -1571,7 +1571,7 @@ void WeldEditView::SetDrawingArea(weld::DrawingArea* 
pDrawingArea)
     EnableRTL(false);
 
     const StyleSettings& rStyleSettings = 
Application::GetSettings().GetStyleSettings();
-    Color aBgColor = rStyleSettings.GetWindowColor();
+    Color aBgColor = rStyleSettings.GetFieldColor();
 
     OutputDevice& rDevice = pDrawingArea->get_ref_device();
 

Reply via email to