starmath: Use field color for SmEditTextWindow background

With same reasoning as

commit 8bb38e1b3f
Author: Michael Weghorn <m.weghorn@posteo.de>
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 <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Ilmari Lauhakangas 2024-11-20 17:13:41 +02:00 committed by Michael Weghorn
parent 235aebe31e
commit 4b0b65f760

View file

@ -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);