sw/source/ui/frmdlg/column.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 557526a59c2491d94e2bc86d3a267a67ee5418ee
Author:     Heiko Tietze <tietze.he...@gmail.com>
AuthorDate: Mon Jun 2 12:04:26 2025 +0200
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Mon Jun 2 13:32:54 2025 +0200

    Resolves tdf#165604 - Make line style color depend on dialog background
    
    Feedback for the chosen line color should not be done at the line style
    dropdown but in the preview
    
    Change-Id: I8cac63eaf1e9c18cb9bed6db8dc899e2ba0eb6bf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186129
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>

diff --git a/sw/source/ui/frmdlg/column.cxx b/sw/source/ui/frmdlg/column.cxx
index 9103e53a1baf..55872553ee98 100644
--- a/sw/source/ui/frmdlg/column.cxx
+++ b/sw/source/ui/frmdlg/column.cxx
@@ -706,9 +706,8 @@ IMPL_LINK_NOARG( SwColumnPage, UpdateColMgr, 
weld::MetricSpinButton&, void )
         //them to avoid the listbox selection resetting
         if (nLineWidth != m_xLineTypeDLB->GetWidth())
             m_xLineTypeDLB->SetWidth(nLineWidth);
-        Color aColor(m_xLineColorDLB->GetSelectEntryColor());
-        if (aColor != m_xLineTypeDLB->GetColor())
-            m_xLineTypeDLB->SetColor(aColor);
+        const StyleSettings& rStyleSettings = 
Application::GetSettings().GetStyleSettings();
+        m_xLineTypeDLB->SetColor(rStyleSettings.GetDialogTextColor());
     }
     else
     {

Reply via email to