From 4bd7fa25ac4357c8f38c40974616469d3a10f890 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 14 Sep 2012 03:26:40 -0400 Subject: [PATCH] Add registry file to web theme app --- apps/web_theme/icons.py | 6 ++++++ apps/web_theme/registry.py | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 apps/web_theme/icons.py create mode 100644 apps/web_theme/registry.py diff --git a/apps/web_theme/icons.py b/apps/web_theme/icons.py new file mode 100644 index 0000000000..476d0fa82b --- /dev/null +++ b/apps/web_theme/icons.py @@ -0,0 +1,6 @@ +from __future__ import absolute_import + +from icons.literals import THEATER +from icons import Icon + +icon_web_theme = Icon(THEATER) diff --git a/apps/web_theme/registry.py b/apps/web_theme/registry.py new file mode 100644 index 0000000000..cfb1b3929e --- /dev/null +++ b/apps/web_theme/registry.py @@ -0,0 +1,32 @@ +from __future__ import absolute_import + +from django.utils.translation import ugettext_lazy as _ + +from smart_settings import LocalScope + +from .icons import icon_web_theme + +label = _(u'Web theme') +description = _(u'Handles UI rendering.') +dependencies = ['app_registry', 'icons'] +icon = icon_web_theme +settings = [ + { + 'name': 'THEME', + 'default': u'activo', + 'description': _(u'CSS theme to apply, options are: amro, bec, bec-green, blue, default, djime-cerulean, drastic-dark, kathleene, olive, orange, red, reidb-greenish and warehouse.'), + 'scopes': [LocalScope()] + }, + { + 'name': 'ENABLE_SCROLL_JS', + 'default': True, + 'hidden': True, + 'scopes': [LocalScope()] + }, + { + 'name': 'VERBOSE_LOGIN', + 'default': True, + 'description': _(u'Display extra information in the login screen.'), + 'scopes': [LocalScope()] + }, +]