summaryrefslogtreecommitdiff
path: root/svx/source/dialog/weldeditview.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-10-14 12:22:32 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-10-15 08:10:36 +0200
commit8bb38e1b3f1ba1d9c563598d161230fdf27e4685 (patch)
tree097d5634c018aaf19092b89e6d6df2ee7815fd94 /svx/source/dialog/weldeditview.cxx
parent6c1e3cd597cba07ff637173ab298794dba463054 (diff)
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.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'svx/source/dialog/weldeditview.cxx')
-rw-r--r--svx/source/dialog/weldeditview.cxx2
1 files changed, 1 insertions, 1 deletions
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();