diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2024-01-10 20:34:55 +0100 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2024-01-11 19:56:08 +0100 |
commit | bf410be4502c2d78e38856c455833681c6b8a151 (patch) | |
tree | dad89b6cba25835b25199a279ba1d98ba116dad0 /basctl/source/basicide/baside2.cxx | |
parent | 45f3398c9a816f70815cf38620cf5db2ce66431c (diff) |
tdf#158750 Highlight the line where the cursor is positioned (Basic IDE)
This patch implements support for highlighting the selected line in the code editor, similar to what Kate, VSCode, etc do.
If the cursor is positioned in a single line and nothing is selected, then a highlight color is applied to the line. The line number window also highlights the selected line.
Change-Id: I2047d79500cd783b122b6752bb00996de0a7c702
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161861
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'basctl/source/basicide/baside2.cxx')
-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 a36cec6fe245..74c25d6f4631 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -1618,6 +1618,7 @@ void ModulWindowLayout::SyntaxColors::ApplyColorScheme(OUString aSchemeId, bool { pEditor->ChangeFontColor(aFontColor); pEditor->SetBackground(Wallpaper(aDocColor)); + pEditor->SetLineHighlightColor(aColorScheme.m_aLineHighlightColor); pEditor->Invalidate(); } |