mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 02:22:22 +02:00
[theme] peel out oscar from SearXNG development
This is the first step of removing oscar theme Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
7ad0348878
commit
e8541b6006
17 changed files with 54 additions and 162 deletions
|
@ -362,11 +362,6 @@ class Preferences:
|
|||
locked=is_locked('doi_resolver'),
|
||||
choices=DOI_RESOLVERS
|
||||
),
|
||||
'oscar-style': EnumStringSetting(
|
||||
settings['ui']['theme_args']['oscar_style'],
|
||||
locked=is_locked('oscar-style'),
|
||||
choices=['', 'logicodev', 'logicodev-dark', 'pointhi']
|
||||
),
|
||||
'simple_style': EnumStringSetting(
|
||||
settings['ui']['theme_args']['simple_style'],
|
||||
locked=is_locked('simple_style'),
|
||||
|
|
|
@ -86,8 +86,6 @@ ui:
|
|||
# Open result links in a new tab by default
|
||||
# results_on_new_tab: false
|
||||
theme_args:
|
||||
# default style of oscar
|
||||
oscar_style: logicodev
|
||||
# style of simple theme: auto, light, dark
|
||||
simple_style: auto
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ searx_dir = abspath(dirname(__file__))
|
|||
logger = logging.getLogger('searx')
|
||||
OUTPUT_FORMATS = ['html', 'csv', 'json', 'rss']
|
||||
LANGUAGE_CODES = ['all'] + list(l[0] for l in languages)
|
||||
OSCAR_STYLE = ('logicodev', 'logicodev-dark', 'pointhi')
|
||||
SIMPLE_STYLE = ('auto', 'light', 'dark')
|
||||
CATEGORIES_AS_TABS = {
|
||||
'general': {},
|
||||
|
@ -181,7 +180,6 @@ SCHEMA = {
|
|||
'default_theme': SettingsValue(str, 'simple'),
|
||||
'default_locale': SettingsValue(str, ''),
|
||||
'theme_args': {
|
||||
'oscar_style': SettingsValue(OSCAR_STYLE, 'logicodev'),
|
||||
'simple_style': SettingsValue(SIMPLE_STYLE, 'auto'),
|
||||
},
|
||||
'results_on_new_tab': SettingsValue(bool, False),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% from 'oscar/macros.html' import icon %}
|
||||
{% from 'simple/icons.html' import icon %}
|
||||
<div class="alert alert-info fade in" role="alert">
|
||||
<strong class="lead">{{ icon('info-sign') }} {{ _('Information!') }}</strong>
|
||||
{{ _('currently, there are no cookies defined.') }}
|
|
@ -399,7 +399,7 @@
|
|||
{% endfor %}
|
||||
</table>
|
||||
{% else %}
|
||||
{% include 'oscar/messages/no_cookies.html' %}
|
||||
{% include 'simple/messages/no_cookies.html' %}
|
||||
{% endif %}
|
||||
<h4>{{ _('Search URL of the currently saved preferences') }} :</h4>
|
||||
<div class="selectable_url">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue