commit 2ed5b4a70552ba6785c2747cb660eee999b60a4f Author: Daniel Ramoeller <d....@web.de> Date: Wed Mar 8 20:00:27 2023 +0100
Fix text color of "file changed on disk" notification Adjusts the label color of the notification to the background. Fix for #12690. --- src/frontends/qt/GuiWorkArea.cpp | 3 ++- src/frontends/qt/qt_helpers.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp index cc1fdb5..ae69332 100644 --- a/src/frontends/qt/GuiWorkArea.cpp +++ b/src/frontends/qt/GuiWorkArea.cpp @@ -2115,7 +2115,8 @@ GuiWorkAreaContainer::GuiWorkAreaContainer(GuiWorkArea * wa, QWidget * parent) this, SLOT(updateDisplay())); connect(reloadPB, SIGNAL(clicked()), this, SLOT(reload())); connect(ignorePB, SIGNAL(clicked()), this, SLOT(ignore())); - setMessageColour({notificationFrame}, {reloadPB, ignorePB}); + setMessageColour({notificationFrame, externalModificationLabel}, + {reloadPB, ignorePB}); updateDisplay(); } diff --git a/src/frontends/qt/qt_helpers.cpp b/src/frontends/qt/qt_helpers.cpp index 97f316a..6cd8e01 100644 --- a/src/frontends/qt/qt_helpers.cpp +++ b/src/frontends/qt/qt_helpers.cpp @@ -264,6 +264,8 @@ void setMessageColour(list<QWidget *> highlighted, list<QWidget *> plain) QPalette pal = QApplication::palette(); QPalette newpal(pal.color(QPalette::Active, QPalette::HighlightedText), pal.color(QPalette::Active, QPalette::Highlight)); + newpal.setColor(QPalette::WindowText, + pal.color(QPalette::Active, QPalette::HighlightedText)); for (QWidget * w : highlighted) w->setPalette(newpal); for (QWidget * w : plain) -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs