diff options
| author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-19 22:07:19 +0100 |
|---|---|---|
| committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-19 22:07:19 +0100 |
| commit | cd179bbdbbf71431cb61be0f6188ea9507c29027 (patch) | |
| tree | 5c10122262b10d59c0e2ca993abc6bdc88d4a8f0 /searx/templates/courgette/preferences.html | |
| parent | 71ae75d73e3dd33d719d6eb94e173b02c9b47edd (diff) | |
Modify theme Courgette to add colors
Two colors are needed so I use a space in the cookie and a split in jinja to "encode" and "decode" them.
We should enforce that each theme if they must use a cookie, prefix its name with the name of the theme.
The color proposed here are based on bootstrap. We could use others.
Diffstat (limited to 'searx/templates/courgette/preferences.html')
| -rw-r--r-- | searx/templates/courgette/preferences.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/searx/templates/courgette/preferences.html b/searx/templates/courgette/preferences.html index 07d79b532..64da3fd1c 100644 --- a/searx/templates/courgette/preferences.html +++ b/searx/templates/courgette/preferences.html @@ -70,6 +70,19 @@ </p> </fieldset> <fieldset> + <legend>{{ _('Color') }}</legend> + <p> + <select name="courgette-color"> + <option value="#3498DB #0665A2" {% if cookies['courgette-color'] and cookies['courgette-color'] == '#3498DB #0665A2' %}selected="selected"{% endif %}>{{ _('Blue (default)') }}</option> + <option value="#6F5499 #563D7C" {% if cookies['courgette-color'] and cookies['courgette-color'] == '#6F5499 #563D7C' %}selected="selected"{% endif %}>{{ _('Violet') }}</option> + <option value="#5CB85C #449D44" {% if cookies['courgette-color'] and cookies['courgette-color'] == '#5CB85C #449D44' %}selected="selected"{% endif %}>{{ _('Green') }}</option> + <option value="#5BC0DE #31B0D5" {% if cookies['courgette-color'] and cookies['courgette-color'] == '#5BC0DE #31B0D5' %}selected="selected"{% endif %}>{{ _('Cyan') }}</option> + <option value="#F0AD4E #EC971F" {% if cookies['courgette-color'] and cookies['courgette-color'] == '#F0AD4E #EC971F' %}selected="selected"{% endif %}>{{ _('Orange') }}</option> + <option value="#D9534F #C9302C" {% if cookies['courgette-color'] and cookies['courgette-color'] == '#D9534F #C9302C' %}selected="selected"{% endif %}>{{ _('Red') }}</option> + </select> + </p> + </fieldset> + <fieldset> <legend>{{ _('Currently used search engines') }}</legend> <table> |