summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2024-01-10 20:34:55 +0100
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2024-01-11 19:56:08 +0100
commitbf410be4502c2d78e38856c455833681c6b8a151 (patch)
treedad89b6cba25835b25199a279ba1d98ba116dad0 /officecfg
parent45f3398c9a816f70815cf38620cf5db2ce66431c (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 'officecfg')
-rw-r--r--officecfg/registry/data/org/openoffice/Office/BasicIDE.xcu30
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/BasicIDE.xcs10
2 files changed, 40 insertions, 0 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/BasicIDE.xcu b/officecfg/registry/data/org/openoffice/Office/BasicIDE.xcu
index 0448b5570987..c62a2d6af7dd 100644
--- a/officecfg/registry/data/org/openoffice/Office/BasicIDE.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/BasicIDE.xcu
@@ -65,6 +65,11 @@
<value>16777215</value>
</prop>
</node>
+ <node oor:name="LineHighlightColor">
+ <prop oor:name="Color">
+ <value>15658734</value>
+ </prop>
+ </node>
</node>
<node oor:name="COLORSCHEME_LIBREOFFICE_DARK" oor:op="replace">
<node oor:name="GenericColor">
@@ -112,6 +117,11 @@
<value>0</value>
</prop>
</node>
+ <node oor:name="LineHighlightColor">
+ <prop oor:name="Color">
+ <value>2236962</value>
+ </prop>
+ </node>
</node>
<node oor:name="COLORSCHEME_BREEZE_LIGHT" oor:op="replace">
<node oor:name="GenericColor">
@@ -159,6 +169,11 @@
<value>16777215</value>
</prop>
</node>
+ <node oor:name="LineHighlightColor">
+ <prop oor:name="Color">
+ <value>16316406</value>
+ </prop>
+ </node>
</node>
<node oor:name="COLORSCHEME_BREEZE_DARK" oor:op="replace">
<node oor:name="GenericColor">
@@ -206,6 +221,11 @@
<value>2303529</value>
</prop>
</node>
+ <node oor:name="LineHighlightColor">
+ <prop oor:name="Color">
+ <value>2764338</value>
+ </prop>
+ </node>
</node>
<node oor:name="COLORSCHEME_SOLARIZED_LIGHT" oor:op="replace">
<node oor:name="GenericColor">
@@ -253,6 +273,11 @@
<value>16643811</value>
</prop>
</node>
+ <node oor:name="LineHighlightColor">
+ <prop oor:name="Color">
+ <value>15657173</value>
+ </prop>
+ </node>
</node>
<node oor:name="COLORSCHEME_SOLARIZED_DARK" oor:op="replace">
<node oor:name="GenericColor">
@@ -300,6 +325,11 @@
<value>11062</value>
</prop>
</node>
+ <node oor:name="LineHighlightColor">
+ <prop oor:name="Color">
+ <value>472642</value>
+ </prop>
+ </node>
</node>
</node>
</oor:component-data>
diff --git a/officecfg/registry/schema/org/openoffice/Office/BasicIDE.xcs b/officecfg/registry/schema/org/openoffice/Office/BasicIDE.xcs
index 1fe9af67f78f..cc783b837046 100644
--- a/officecfg/registry/schema/org/openoffice/Office/BasicIDE.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/BasicIDE.xcs
@@ -116,6 +116,16 @@
</info>
</prop>
</group>
+ <group oor:name="LineHighlightColor">
+ <info>
+ <desc>Specifies the formatting to highlight the selected line.</desc>
+ </info>
+ <prop oor:name="Color" oor:type="xs:int">
+ <info>
+ <desc>Specifies the color used to highlight the selected line.</desc>
+ </info>
+ </prop>
+ </group>
</group>
</templates>
<component>