This commit is contained in:
Kovid Goyal 2017-05-16 10:34:40 +05:30
parent 3e35fab553
commit 02b67f82b9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,7 @@ def on_data_loaded(end_type, xhr, ev):
if end_type is 'load': if end_type is 'load':
install_data_and_init_ui(xhr.responseText) install_data_and_init_ui(xhr.responseText)
else: else:
p = E.p(style='color:red; font-weight: bold; font-size:1.5em') p = E.p(style='color:{}; font-weight: bold; font-size:1.5em'.format(get_color('window-error-foreground')))
if xhr.status is 401: if xhr.status is 401:
msg = _('You are not authorized to view this site') msg = _('You are not authorized to view this site')
else: else:

View File

@ -13,6 +13,7 @@ def get_color(name):
'window-background': LIGHT, 'window-background': LIGHT,
'window-background2': LIGHT_DARKER, 'window-background2': LIGHT_DARKER,
'window-foreground': DARK, 'window-foreground': DARK,
'window-error-foreground': 'red',
# Top bar specific colors # Top bar specific colors
'bar-background': DARK, 'bar-background': DARK,