[LyX/master] Forgot this in efec7bd2e2b5
Juergen Spitzmueller
spitz at lyx.org
Sun Jul 5 11:34:43 UTC 2026
commit c62a19018a931017152af9434890852c7895aec9
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Sun Jul 5 13:31:30 2026 +0200
Forgot this in efec7bd2e2b5
---
src/insets/Inset.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp
index 0924136107..7b78747f38 100644
--- a/src/insets/Inset.cpp
+++ b/src/insets/Inset.cpp
@@ -334,19 +334,19 @@ Color Inset::getModeDependentColor(ColorCode const fgc, ColorCode const bgc) con
bool darken = false;
if (theApp() && theApp()->isInDarkMode()) {
if (fgc == Color_none
- && theApp()->isLightColor(argbFromHexName(lcolor.getX11HexName(bgc, true)),
+ && theApp()->isLightColor(argbFromHexName(lcolor.get32bitHexName(bgc, true)),
argbFromHexName(lcolor.get32bitHexName("background", true))))
invert = true;
else if (bgc == Color_background
&& fgc != Color_none
- && !theApp()->isLightColor(argbFromHexName(lcolor.getX11HexName(fgc, true)),
+ && !theApp()->isLightColor(argbFromHexName(lcolor.get32bitHexName(fgc, true)),
argbFromHexName(lcolor.get32bitHexName("background", true))))
invert = true;
else if (bgc != Color_background
&& fgc != Color_none
- && theApp()->isLightColor(argbFromHexName(lcolor.getX11HexName(fgc, true)),
+ && theApp()->isLightColor(argbFromHexName(lcolor.get32bitHexName(fgc, true)),
argbFromHexName(lcolor.get32bitHexName(bgc, true)))
- && theApp()->isLightColor(argbFromHexName(lcolor.getX11HexName(bgc, true)),
+ && theApp()->isLightColor(argbFromHexName(lcolor.get32bitHexName(bgc, true)),
argbFromHexName(lcolor.get32bitHexName("background", true))))
darken = true;
}
More information about the lyx-cvs
mailing list