basctl/source/basicide/baside2.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit df0c602aa6579604bc734bbfb5956261eb026b23
Author:     Rafael Lima <rafael.palma.l...@gmail.com>
AuthorDate: Wed Jan 31 13:54:43 2024 +0100
Commit:     Andreas Heinisch <andreas.heini...@yahoo.de>
CommitDate: Wed Jan 31 22:58:22 2024 +0100

    Related tdf#158750 Fix line highlight for all modules when color scheme 
changes
    
    Prior to this patch, if a library had multiple modules and the color scheme 
was changed (via View - Color Scheme), the line hightlight color would only 
update for the current module and remain unchanged for the other modules in the 
same library.
    
    Change-Id: Idda78c07d02534dfedcd927c37116a2617500ebc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162818
    Tested-by: Jenkins
    Reviewed-by: Andreas Heinisch <andreas.heini...@yahoo.de>

diff --git a/basctl/source/basicide/baside2.cxx 
b/basctl/source/basicide/baside2.cxx
index 98f016a57236..db9b109f7947 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -1450,6 +1450,7 @@ void ModulWindow::SetEditorColorScheme(const OUString& 
rColorScheme)
     Wallpaper aBackgroundColor(GetLayout().GetSyntaxBackgroundColor());
     rEditWindow.SetBackground(aBackgroundColor);
     
rEditWindow.GetWindow(GetWindowType::Border)->SetBackground(aBackgroundColor);
+    
rEditWindow.SetLineHighlightColor(GetShell()->GetColorConfig()->GetColorScheme(rColorScheme).m_aLineHighlightColor);
 
     // The EditEngine is created only when the module is actually opened for 
the first time,
     // therefore we need to check if it actually exists before updating its 
syntax highlighting

Reply via email to