fix QTextEdit not clearing properly, use minimum contrast in initial client color selection, MINIMUM_CONTRAST constant

This commit is contained in:
Xevion
2021-01-20 23:36:23 -06:00
parent fd7cf3bdec
commit 76ec0fd75b
4 changed files with 4 additions and 2 deletions

View File

@@ -108,6 +108,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
cursor = self.messageBox.textCursor()
cursor.setPosition(0)
self.messageBox.setTextCursor(cursor)
return True
return super().eventFilter(obj, event)
def addMessage(self, nickname: str, message: str, color: str, time: int) -> None: