sw/source/uibase/sidebar/QuickFindPanel.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit ec958b578bd01071b4a6061f57007df6fec93aee Author: Rafael Lima <[email protected]> AuthorDate: Wed Nov 27 13:50:49 2024 +0100 Commit: Rafael Lima <[email protected]> CommitDate: Thu Nov 28 01:41:55 2024 +0100 tdf#164069 Make line in Find sidebar respect dark mode Change-Id: Ie75cb0a581447e7f247be6b6d2bf1860ec74c8eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177415 Reviewed-by: Heiko Tietze <[email protected]> Tested-by: Jenkins diff --git a/sw/source/uibase/sidebar/QuickFindPanel.cxx b/sw/source/uibase/sidebar/QuickFindPanel.cxx index 11e5545b52d2..6cbaa4fe1f55 100644 --- a/sw/source/uibase/sidebar/QuickFindPanel.cxx +++ b/sw/source/uibase/sidebar/QuickFindPanel.cxx @@ -9,8 +9,8 @@ */ #include "QuickFindPanel.hxx" +#include <svtools/colorcfg.hxx> #include <com/sun/star/lang/IllegalArgumentException.hpp> - #include <comphelper/scopeguard.hxx> #include <svl/srchitem.hxx> #include <view.hxx> @@ -332,7 +332,8 @@ IMPL_LINK(QuickFindPanel, SearchFindsListRender, weld::TreeView::render_args, aP tools::Long aTextHeight = rRenderContext.GetTextHeight(); rRenderContext.Push(); - rRenderContext.SetLineColor(COL_BLACK); + svtools::ColorConfig aColorConfig; + rRenderContext.SetLineColor(aColorConfig.GetColorValue(svtools::BUTTONTEXTCOLOR).nColor); rRenderContext.DrawLine( aRect.LeftCenter(), Point(aRect.Center().AdjustX(-(aTextWidth / 2)) - 4, aRect.Center().getY()));
