commit f1aee4f2ba3ca7e27a805ea317200c374f8e2a12
Author: Juergen Spitzmueller <[email protected]>
Date: Mon Jan 20 12:37:32 2025 +0100
Fix highlight pixel color of Delimiter and Bullets with dark mode (#13143)
---
src/frontends/qt/BulletsModule.cpp | 2 +-
src/frontends/qt/GuiDelimiter.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt/BulletsModule.cpp
b/src/frontends/qt/BulletsModule.cpp
index 3c9e42e8e2..0cbfe8dbae 100644
--- a/src/frontends/qt/BulletsModule.cpp
+++ b/src/frontends/qt/BulletsModule.cpp
@@ -146,7 +146,7 @@ string const bulletIcon(int f, int c)
QPixmap getSelectedPixmap(QPixmap pixmap, QSize const icon_size)
{
- QPalette palette = QPalette();
+ QPalette palette = guiApp->style()->standardPalette();
QColor text_color = (guiApp->isInDarkMode())
? palette.color(QPalette::Active, QPalette::WindowText)
: Qt::black;
diff --git a/src/frontends/qt/GuiDelimiter.cpp
b/src/frontends/qt/GuiDelimiter.cpp
index 3cb70449f6..5fcf3fb20f 100644
--- a/src/frontends/qt/GuiDelimiter.cpp
+++ b/src/frontends/qt/GuiDelimiter.cpp
@@ -91,7 +91,7 @@ struct MathSymbol {
QPixmap getSelectedPixmap(QPixmap pixmap, QSize const icon_size)
{
- QPalette palette = QPalette();
+ QPalette palette = guiApp->style()->standardPalette();
QColor text_color = (guiApp->isInDarkMode())
? palette.color(QPalette::Active, QPalette::WindowText)
: Qt::black;
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs