From 4b0b65f7605f1291fedc77ac850afed8e39dfcd8 Mon Sep 17 00:00:00 2001 From: Ilmari Lauhakangas Date: Wed, 20 Nov 2024 17:13:41 +0200 Subject: [PATCH] starmath: Use field color for SmEditTextWindow background With same reasoning as commit 8bb38e1b3f1ba1d9c563598d161230fdf27e4685 Author: Michael Weghorn Date: Mon Oct 14 12:22:32 2024 +0200 tdf#163397 svx: Use field color for WeldEditView bg Change-Id: Iac0c6b934946b6755ce53ac312c1e637678f966d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176856 Reviewed-by: Michael Weghorn Tested-by: Jenkins --- starmath/source/edit.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index 6acb44792dac..384f052ff000 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -100,8 +100,7 @@ void SmEditTextWindow::SetDrawingArea(weld::DrawingArea* pDrawingArea) { weld::CustomWidgetController::SetDrawingArea(pDrawingArea); - const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); - Color aBgColor = rStyleSettings.GetWindowColor(); + Color aBgColor = Application::GetSettings().GetStyleSettings().GetFieldColor(); OutputDevice& rDevice = pDrawingArea->get_ref_device(); rDevice.SetBackground(aBgColor);