commit b2964b3d0e9b05e2bf36738ad9cd4da719bb406a
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Nov 11 13:06:16 2025 +0100

    Properly register local greyedout note (GUI) color (#13248)
    
    (cherry picked from commit 3b00616015c59713c83e640c0359745bd53c4438)
---
 src/BufferParams.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index 43b37b7262..e781f3ef89 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -1305,9 +1305,10 @@ string BufferParams::readToken(Lexer & lex, string const 
& token,
                        notefontcolor = lex.getString();
                        if (notefontcolor == "none")
                                break;
-                       // set a local name for the painter
-                       lcolor.setColor("notefontcolor@" + 
filename.absFileName(),
-                                       lcolor.getX11HexName(notefontcolor));
+                       // Register and set a local name for the painter
+                       string const localcolor = "notefontcolor@" + 
filename.absFileName();
+                       registerLyXColor(localcolor, notefontcolor);
+                       lcolor.setColor(localcolor, 
lcolor.getX11HexName(notefontcolor));
                        break;
                }
                if (token == "\\boxbgcolor") {
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to