Set the mention and error color according to colorscheme

Use kirigami to set the proper link and error color for mentions and error underlining in chatbox

This is with my own colorscheme:

![image](/uploads/6269b85f936a98b02f42a9ce01da76b1/image.png)
This commit is contained in:
Akseli Lahtinen
2023-03-30 16:25:01 +00:00
parent 0d1b35b610
commit 8f141cd88d
4 changed files with 51 additions and 0 deletions

View File

@@ -394,6 +394,8 @@ QQC2.Control {
cursorPosition: textField.cursorPosition
selectionStart: textField.selectionStart
selectionEnd: textField.selectionEnd
mentionColor: Kirigami.Theme.linkColor
errorColor: Kirigami.Theme.negativeTextColor
Component.onCompleted: {
RoomManager.chatDocumentHandler = documentHandler;
}