Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions openedx/features/edly/context_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
'logo': "https://edly-edx-theme-files.s3.amazonaws.com/st-lutherx-logo.png",
'favicon': "https://edly-edx-theme-files.s3.amazonaws.com/favicon.ico",
}
DEFAULT_XBLOCK_COLOR_DICT = {
'xblock-color-warning': '#F59810',
'xblock-color-warning-light': '#FFFAF1',
}


def dynamic_theming_context(request): # pylint: disable=unused-argument
Expand Down Expand Up @@ -117,6 +121,12 @@ def get_theme_colors():
'secondary-darken-10p': get_darken_color(secondary_darken_10p, secondary, 0.1),
}

# Kept in its own `XBLOCK_COLORS` site_values key rather than inside `COLORS`:
# the panel wholesale-replaces `COLORS` on every Appearance save, which would
# silently drop these. Defaults match the theme's SASS values, so a site with no
# `XBLOCK_COLORS` renders exactly as before.
colours.update(configuration_helpers.get_dict('XBLOCK_COLORS', DEFAULT_XBLOCK_COLOR_DICT))

return colours


Expand Down