[LyX/master] Forgot this in efec7bd2e2b5
Juergen Spitzmueller <[email protected]> Sun, 05 Jul 2026 11:34:43 +0000
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit c62a19018a931017152af9434890852c7895aec9 Author: Juergen Spitzmueller <[email protected]> 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; } -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs