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_OSX_MONOSPACE_FONT = "Menlo"
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_WEIGHT = 1
DEFAULT_CHAT_OUTPUT_FONT_COLOR = "#FFFF00"
DEFAULT_CHAT_FONT_WEIGHT = 1
# Maximum character lengths (for client and server)
MAX_CHAT_MESSAGE_LENGTH = 50 # Number of displayed characters

View File

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