Unify mpv chat input/output defaults

This commit is contained in:
Etoh 2017-12-28 17:12:08 +00:00
parent 3666678e0c
commit 0e5838e9b9
2 changed files with 9 additions and 8 deletions

View File

@ -59,9 +59,10 @@ TAB_PADDING = 30
DEFAULT_WINDOWS_MONOSPACE_FONT = "Consolas" DEFAULT_WINDOWS_MONOSPACE_FONT = "Consolas"
DEFAULT_OSX_MONOSPACE_FONT = "Menlo" DEFAULT_OSX_MONOSPACE_FONT = "Menlo"
FALLBACK_MONOSPACE_FONT = "Monospace" FALLBACK_MONOSPACE_FONT = "Monospace"
DEFAULT_CHAT_INPUT_FONT_SIZE = 46 DEFAULT_CHAT_FONT_SIZE = 50
DEFAULT_CHAT_INPUT_FONT_COLOR = "#FFFF00" DEFAULT_CHAT_INPUT_FONT_COLOR = "#FFFF00"
DEFAULT_CHAT_INPUT_FONT_WEIGHT = 1 DEFAULT_CHAT_OUTPUT_FONT_COLOR = "#FFFF00"
DEFAULT_CHAT_FONT_WEIGHT = 1
# Maximum character lengths (for client and server) # Maximum character lengths (for client and server)
MAX_CHAT_MESSAGE_LENGTH = 50 # Number of displayed characters MAX_CHAT_MESSAGE_LENGTH = 50 # Number of displayed characters

View File

@ -66,17 +66,17 @@ class ConfigurationGetter(object):
"showContactInfo" : True, "showContactInfo" : True,
"showDurationNotification" : True, "showDurationNotification" : True,
"chatInputEnabled" : True, "chatInputEnabled" : True,
"chatInputFontFamily" : utils.getDefaultMonospaceFont(), "chatInputFontFamily" : 'sans-serif',
"chatInputFontSize" : constants.DEFAULT_CHAT_INPUT_FONT_SIZE, "chatInputFontSize" : constants.DEFAULT_CHAT_FONT_SIZE,
"chatInputFontWeight" : constants.DEFAULT_CHAT_INPUT_FONT_WEIGHT, "chatInputFontWeight" : constants.DEFAULT_CHAT_FONT_WEIGHT,
"chatInputFontUnderline": False, "chatInputFontUnderline": False,
"chatInputFontColor": constants.DEFAULT_CHAT_INPUT_FONT_COLOR, "chatInputFontColor": constants.DEFAULT_CHAT_INPUT_FONT_COLOR,
"chatInputPosition": constants.INPUT_POSITION_MIDDLE, "chatInputPosition": constants.INPUT_POSITION_TOP,
"chatDirectInput": False, "chatDirectInput": False,
"chatOutputEnabled": True, "chatOutputEnabled": True,
"chatOutputFontFamily": 'sans-serif', "chatOutputFontFamily": 'sans-serif',
"chatOutputFontSize": 50, "chatOutputFontSize": constants.DEFAULT_CHAT_FONT_SIZE,
"chatOutputFontWeight": 1, "chatOutputFontWeight": constants.DEFAULT_CHAT_FONT_WEIGHT,
"chatOutputFontUnderline": False, "chatOutputFontUnderline": False,
"chatOutputMode": constants.CHATROOM_MODE, "chatOutputMode": constants.CHATROOM_MODE,
"chatMaxLines": 7, "chatMaxLines": 7,