mirror of
https://github.com/Xevion/tcp-chat.git
synced 2025-12-06 09:16:40 -06:00
fix QTextEdit not clearing properly, use minimum contrast in initial client color selection, MINIMUM_CONTRAST constant
This commit is contained in:
@@ -70,7 +70,7 @@ class CommandHandler:
|
||||
logger.error(f'Could not process client {self.client.nickname}\'s command request.', exc_info=e)
|
||||
return 'A fatal error occurred while trying to process this command.'
|
||||
|
||||
def reroll(self, minimum_contrast: float = 4.65) -> str:
|
||||
def reroll(self, minimum_contrast: float = constants.MINIMUM_CONTRAST) -> str:
|
||||
"""
|
||||
Randomly change the client's color to a different color.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user