[plasma/union/Plasma/6.7] src/output/qtquick/style: output/quick: Don't produce an error if SpinBox text color is not set

Arjen Hiemstra <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a2377799a139671b40e4166ff57848b2097f2fc3 by Arjen Hiemstra.
Committed on 17/07/2026 at 08:43.
Pushed by ahiemstra into branch 'Plasma/6.7'.

output/quick: Don't produce an error if SpinBox text color is not set


(cherry picked from commit 7fda033c4e8e582900f11c32dc66f1a21d7d2efd)

Co-authored-by: Arjen Hiemstra <[email protected]>

M  +1    -1    src/output/qtquick/style/SpinBox.qml

https://invent.kde.org/plasma/union/-/commit/a2377799a139671b40e4166ff57848b2097f2fc3

diff --git a/src/output/qtquick/style/SpinBox.qml b/src/output/qtquick/style/SpinBox.qml
index 04712365..de868704 100644
--- a/src/output/qtquick/style/SpinBox.qml
+++ b/src/output/qtquick/style/SpinBox.qml
@@ -62,7 +62,7 @@ T.SpinBox {
         clip: true
         text: control.displayText
         font: control.font
-        color: Union.Style.properties.text.color
+        color: Union.Style.properties.text.color ?? control.palette.text
 
         horizontalAlignment: Union.Alignment.toQtHorizontal(Union.Style.properties.text.alignment.horizontal)
         verticalAlignment: Union.Alignment.toQtVertical(Union.Style.properties.text.alignment.vertical)
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.