This commit is contained in:
Kovid Goyal
2017-05-16 10:34:40 +05:30
parent 3e35fab553
commit 02b67f82b9
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ def on_data_loaded(end_type, xhr, ev):
if end_type is 'load':
install_data_and_init_ui(xhr.responseText)
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:
msg = _('You are not authorized to view this site')
else:
+1
View File
@@ -13,6 +13,7 @@ def get_color(name):
'window-background': LIGHT,
'window-background2': LIGHT_DARKER,
'window-foreground': DARK,
'window-error-foreground': 'red',
# Top bar specific colors
'bar-background': DARK,