diff --git a/src/pyj/book_list/main.pyj b/src/pyj/book_list/main.pyj index 33b44d7361..53ea878107 100644 --- a/src/pyj/book_list/main.pyj +++ b/src/pyj/book_list/main.pyj @@ -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: diff --git a/src/pyj/book_list/theme.pyj b/src/pyj/book_list/theme.pyj index a580690c34..7bc2343b8f 100644 --- a/src/pyj/book_list/theme.pyj +++ b/src/pyj/book_list/theme.pyj @@ -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,