[libraries/kpublictransport/release/26.08] src/quick: Fix displaying text on light line colors with light color schemes

Volker Krause <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit f324f3ecda20021ceb7fd9769c02db8370834c29 by Volker Krause.
Committed on 26/07/2026 at 16:03.
Pushed by vkrause into branch 'release/26.08'.

Fix displaying text on light line colors with light color schemes

Previously shown white on white.

(cherry picked from commit 765f8913d1fa51db80329907a543c9a04480c069)

M  +3    -1    src/quick/TransportNameControl.qml

https://invent.kde.org/libraries/kpublictransport/-/commit/f324f3ecda20021ceb7fd9769c02db8370834c29

diff --git a/src/quick/TransportNameControl.qml b/src/quick/TransportNameControl.qml
index 3f15ac36..ec424215 100644
--- a/src/quick/TransportNameControl.qml
+++ b/src/quick/TransportNameControl.qml
@@ -114,7 +114,9 @@ Kirigami.Padding {
                     // Test case U4 in Berlin
                 }
 
-                return backgroundIsDark && isDarkTheme ? Kirigami.Theme.textColor : Kirigami.Theme.backgroundColor;
+                if (backgroundIsDark)
+                    return isDarkTheme ? Kirigami.Theme.textColor : Kirigami.Theme.backgroundColor;
+                return isDarkTheme ? Kirigami.Theme.backgroundColor : Kirigami.Theme.textColor;
             }
             level: 4
             text: root.lineName
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.