diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-01-18 13:44:26 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-01-18 13:44:26 +0100 |
commit | 6a0de004a26d3cd9df5c928de0581a687f1d8a8b (patch) | |
tree | f573c9cb91d6444125d59282c4a04ec42a04151e /resources/qml | |
parent | Fix kick translation (diff) | |
download | nheko-6a0de004a26d3cd9df5c928de0581a687f1d8a8b.tar.xz |
Fix placeholderTextColor not supported below Qt 5.12
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/MessageInput.qml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml index 0e8788d5..a8ae8984 100644 --- a/resources/qml/MessageInput.qml +++ b/resources/qml/MessageInput.qml @@ -122,7 +122,14 @@ Rectangle { text: "asfkajsdf" selectByMouse: true placeholderText: qsTr("Write a message...") - placeholderTextColor: colors.buttonText + //placeholderTextColor: colors.buttonText + // only set the anchors on Qt 5.12 or higher + // see https://doc.qt.io/qt-5/qml-qtquick-controls2-popup.html#anchors.centerIn-prop + Component.onCompleted: { + if (placeholderTextColor !== undefined) + placeholderTextColor = colors.buttonText + + } color: colors.text width: textInput.width wrapMode: TextEdit.Wrap |