NTextInput: fix text color

This commit is contained in:
Ly-sec
2026-01-17 12:44:31 +01:00
parent cd20b706e0
commit 0a6a3e5eba
+5
View File
@@ -20,6 +20,8 @@ ColumnLayout {
property var defaultValue: undefined
property string settingsPath: ""
property color textColor: Color.mOnSurface
property alias text: input.text
property alias placeholderText: input.placeholderText
property alias inputMethodHints: input.inputMethodHints
@@ -147,6 +149,9 @@ ColumnLayout {
echoMode: TextInput.Normal
readOnly: root.readOnly
placeholderTextColor: Qt.alpha(Color.mOnSurfaceVariant, 0.6)
color: root.textColor
selectionColor: Color.mPrimary
selectedTextColor: Color.mOnPrimary
selectByMouse: true