mirror of
https://github.com/Xevion/tcp-chat.git
synced 2026-01-31 06:26:11 -06:00
fix QTextEdit not clearing properly, use minimum contrast in initial client color selection, MINIMUM_CONTRAST constant
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ class Client:
|
||||
|
||||
self.id = str(uuid.uuid4())
|
||||
self.nickname = self.id[:8]
|
||||
self.color = random.choice(constants.Colors.ALL)
|
||||
self.color = random.choice(constants.Colors.has_contrast(float(constants.MINIMUM_CONTRAST)))
|
||||
|
||||
self.command = CommandHandler(self)
|
||||
self.first_seen = time.time()
|
||||
|
||||
Reference in New Issue
Block a user