commit 97087a79beff4fc9f347ceacd8e39c59bbba3827
Author: Pavel Sanda <[email protected]>
Date:   Tue Jan 21 20:43:46 2025 +0100

    Amend 4560cfd012.
    
    Fix regression on linux + qt 5(.15.8) where math toolbar symbol
    lines are invisible again. See also #13143.
---
 src/frontends/qt/GuiApplication.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/frontends/qt/GuiApplication.cpp 
b/src/frontends/qt/GuiApplication.cpp
index 3a835e9024..dd44941556 100644
--- a/src/frontends/qt/GuiApplication.cpp
+++ b/src/frontends/qt/GuiApplication.cpp
@@ -646,7 +646,12 @@ QPixmap prepareForDarkMode(QPixmap pixmap)
 
        // create a layer with black text turned to QPalette::WindowText
        QPixmap black_overlay(pixmap.size());
+#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
        QColor text_color = 
theGuiApp()->style()->standardPalette().color(QPalette::Active, 
QPalette::WindowText);
+#else
+       QPalette palette = QPalette();
+       QColor text_color = palette.color(QPalette::Active, 
QPalette::WindowText);
+#endif
        black_overlay.fill(text_color);
        black_overlay.setMask(pixmap.createMaskFromColor(Qt::black, 
Qt::MaskOutColor));
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to