diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2024-01-31 13:54:43 +0100 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2024-01-31 22:58:22 +0100 |
commit | df0c602aa6579604bc734bbfb5956261eb026b23 (patch) | |
tree | 4411c577333ff10720a7748eab5b86c15c682cd7 /basctl | |
parent | d7586471cdccaac742a69d53bc299875f02309cd (diff) |
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.heinisch@yahoo.de>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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 |