summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2022-11-04 20:31:22 +0200
committerRafael Lima <rafael.palma.lima@gmail.com>2022-11-17 19:17:58 +0100
commit0aa61812a87ac466bea4b35cba75a4e986be8c7f (patch)
tree7b3c0d9fd0f5e6a4ea69b3d7805d1b1a222ca21d /officecfg
parent50582d73c61165f17c38ce28f216739a3a34664b (diff)
tdf#151904 Make grammar mistake color configurable
This patch creates a new color entry in Tools - Options - Application Colors for "Grammar mistakes". Default values are also set for the "LibreOffice" and "LibreOffice dark" schemes. This patch also applies the selected color to the document, as well as in the SpellChecker dialog. Change-Id: I07f79da9858b675b330540cf08cf389dce39228d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142294 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI.xcu10
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/UI.xcs10
2 files changed, 20 insertions, 0 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI.xcu b/officecfg/registry/data/org/openoffice/Office/UI.xcu
index fa0bdde9216d..f2c763c4d024 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI.xcu
@@ -198,6 +198,11 @@
<value xsi:nil="true"/>
</prop>
</node>
+ <node oor:name="Grammar">
+ <prop oor:name="Color">
+ <value xsi:nil="true"/>
+ </prop>
+ </node>
<node oor:name="SmartTags">
<prop oor:name="Color">
<value xsi:nil="true"/>
@@ -491,6 +496,11 @@
<value>13181214</value>
</prop>
</node>
+ <node oor:name="Grammar">
+ <prop oor:name="Color">
+ <value>7512015</value>
+ </prop>
+ </node>
<node oor:name="SmartTags">
<prop oor:name="Color">
<value>7865203</value>
diff --git a/officecfg/registry/schema/org/openoffice/Office/UI.xcs b/officecfg/registry/schema/org/openoffice/Office/UI.xcs
index aa4fdcec54a0..9afbbc4116d0 100644
--- a/officecfg/registry/schema/org/openoffice/Office/UI.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/UI.xcs
@@ -160,6 +160,16 @@
</info>
</prop>
</group>
+ <group oor:name="Grammar">
+ <info>
+ <desc>Specifies the settings for incorrect grammar found with spellchecking.</desc>
+ </info>
+ <prop oor:name="Color" oor:type="xs:int">
+ <info>
+ <desc>Specifies the color of incorrect grammar found with AutoSpellcheck.</desc>
+ </info>
+ </prop>
+ </group>
<group oor:name="SmartTags">
<info>
<desc>Specifies the settings for smart tags.</desc>