[libraries/kpublictransport] 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 765f8913d1fa51db80329907a543c9a04480c069 by Volker Krause.
Committed on 26/07/2026 at 15:35.
Pushed by vkrause into branch 'master'.

Fix displaying text on light line colors with light color schemes

Previously shown white on white.

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

https://invent.kde.org/libraries/kpublictransport/-/commit/765f8913d1fa51db80329907a543c9a04480c069

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.