Skip to content

Commit

Permalink
add default theme context
Browse files Browse the repository at this point in the history
  • Loading branch information
zubair-arbi committed Mar 5, 2020
1 parent 572442a commit 2424698
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions openedx/core/djangoapps/ace_common/template_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
'primary': '#3E99D4',
'secondary': '#1197EA'
}
DEFAULT_FONTS_DICT = {
'base-font': "'Open Sans', sans-serif",
'heading-font': "'Open Sans', sans-serif",
'font-path': "<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap' rel='stylesheet' />",
}
DEFAULT_BRANDING_DICT = {
'logo': "https://edly-edx-theme-files.s3.amazonaws.com/st-lutherx-logo.png",
'favicon': "https://edly-edx-theme-files.s3.amazonaws.com/favicon.ico",
}


def get_base_template_context(site):
Expand Down Expand Up @@ -47,8 +56,8 @@ def get_base_template_context(site):

# Context processor values for dynamic theming
'edly_colors_config': get_theme_colors(),
'edly_fonts_config': configuration_helpers.get_dict('FONTS', {}),
'edly_branding_config': configuration_helpers.get_dict('BRANDING', {}),
'edly_fonts_config': configuration_helpers.get_dict('FONTS', DEFAULT_FONTS_DICT),
'edly_branding_config': configuration_helpers.get_dict('BRANDING', DEFAULT_BRANDING_DICT),
}


Expand Down

0 comments on commit 2424698

Please sign in to comment.