officecfg/registry/schema/org/openoffice/Office/Calc.xcs |    7 +++++++
 sc/source/ui/view/notemark.cxx                           |    3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

New commits:
commit b32e65bcd122998ecdeb990b07823f5d60cc226a
Author:     Heiko Tietze <[email protected]>
AuthorDate: Wed Dec 17 09:16:09 2025 +0100
Commit:     Heiko Tietze <[email protected]>
CommitDate: Wed Dec 17 11:13:04 2025 +0100

    Resolves tdf#169504 - Option to control comment transparency
    
    Change-Id: I1e0a74f48be0bd8e4f9fd71bdbeb08b39b19ac7d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195760
    Reviewed-by: Heiko Tietze <[email protected]>
    Tested-by: Jenkins

diff --git a/officecfg/registry/schema/org/openoffice/Office/Calc.xcs 
b/officecfg/registry/schema/org/openoffice/Office/Calc.xcs
index 80e79448d344..1f85aab91333 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Calc.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Calc.xcs
@@ -121,6 +121,13 @@
           </info>
           <value>true</value>
         </prop>
+        <prop oor:name="NoteTransparency" oor:type="xs:boolean" 
oor:nillable="false">
+          <info>
+            <desc>Indicates whether temporary comments on hover are 
transparent.</desc>
+            <label>Comment transparency</label>
+          </info>
+          <value>true</value>
+        </prop>
         <prop oor:name="FormulaMark" oor:type="xs:boolean" 
oor:nillable="false">
           <!-- UIHints: Tools - Options -Spreadsheets - Contents - [Section] 
Display -->
           <info>
diff --git a/sc/source/ui/view/notemark.cxx b/sc/source/ui/view/notemark.cxx
index 93c6a144fcad..e7fe6376c61f 100644
--- a/sc/source/ui/view/notemark.cxx
+++ b/sc/source/ui/view/notemark.cxx
@@ -28,6 +28,7 @@
 #include <basegfx/matrix/b2dhommatrixtools.hxx>
 #include <svx/sdr/overlay/overlaymanager.hxx>
 #include <dbfunc.hxx>
+#include <officecfg/Office/Calc.hxx>
 
 #define SC_NOTEOVERLAY_TIME    800
 #define SC_NOTEOVERLAY_SHORT   70
@@ -95,7 +96,7 @@ const drawinglayer::primitive2d::Primitive2DContainer& 
ScNoteOverlay::getOrCreat
         pSdrPage->NbcRemoveObject(mxObject->GetOrdNum());
 
         // show the visualization with slight transparency
-        static bool bUseTransparency(true);
+        static bool 
bUseTransparency(officecfg::Office::Calc::Content::Display::NoteTransparency::get());
         if (bUseTransparency && !maSequence.empty())
         {
             maSequence = drawinglayer::primitive2d::Primitive2DContainer{

Reply via email to