]> git.lyx.org Git - features.git/commitdiff
Fix text color of "file changed on disk" notification
authorDaniel Ramoeller <d.lyx@web.de>
Wed, 8 Mar 2023 19:00:27 +0000 (20:00 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 9 Mar 2023 15:13:00 +0000 (16:13 +0100)
Adjusts the label color of the notification to the background.

Fix for #12690.

src/frontends/qt/GuiWorkArea.cpp
src/frontends/qt/qt_helpers.cpp

index cc1fdb51c05c1657844bb61393154f9ab96af43f..ae693328b7c378b6bb74a68a83cec600875e0e53 100644 (file)
@@ -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();
 }
 
index 97f316ab6d015f417d09f2d91701112c653670ed..6cd8e0185ce16ce3218cfd047e1e4fe045995860 100644 (file)
@@ -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)