mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 22:11:31 -05:00
Merge pull request #8865 from overleaf/ii-mark-themes-as-legacy
[web] Group themes list GitOrigin-RevId: 420572c678016c292a6dc04f409d0f3a0c824b60
This commit is contained in:
parent
1432cfc226
commit
22473d3615
2 changed files with 13 additions and 6 deletions
|
@ -1170,6 +1170,7 @@ const ProjectController = {
|
||||||
languages: Settings.languages,
|
languages: Settings.languages,
|
||||||
learnedWords,
|
learnedWords,
|
||||||
editorThemes: THEME_LIST,
|
editorThemes: THEME_LIST,
|
||||||
|
legacyEditorThemes: LEGACY_THEME_LIST,
|
||||||
maxDocLength: Settings.max_doc_length,
|
maxDocLength: Settings.max_doc_length,
|
||||||
useV2History:
|
useV2History:
|
||||||
project.overleaf &&
|
project.overleaf &&
|
||||||
|
@ -1442,17 +1443,23 @@ const defaultSettingsForAnonymousUser = userId => ({
|
||||||
})
|
})
|
||||||
|
|
||||||
const THEME_LIST = [
|
const THEME_LIST = [
|
||||||
|
'cobalt',
|
||||||
|
'dracula',
|
||||||
|
'eclipse',
|
||||||
|
'monokai',
|
||||||
|
'overleaf',
|
||||||
|
'textmate',
|
||||||
|
]
|
||||||
|
|
||||||
|
const LEGACY_THEME_LIST = [
|
||||||
'ambiance',
|
'ambiance',
|
||||||
'chaos',
|
'chaos',
|
||||||
'chrome',
|
'chrome',
|
||||||
'clouds',
|
'clouds',
|
||||||
'clouds_midnight',
|
'clouds_midnight',
|
||||||
'cobalt',
|
|
||||||
'crimson_editor',
|
'crimson_editor',
|
||||||
'dawn',
|
'dawn',
|
||||||
'dracula',
|
|
||||||
'dreamweaver',
|
'dreamweaver',
|
||||||
'eclipse',
|
|
||||||
'github',
|
'github',
|
||||||
'gob',
|
'gob',
|
||||||
'gruvbox',
|
'gruvbox',
|
||||||
|
@ -1464,15 +1471,12 @@ const THEME_LIST = [
|
||||||
'merbivore',
|
'merbivore',
|
||||||
'merbivore_soft',
|
'merbivore_soft',
|
||||||
'mono_industrial',
|
'mono_industrial',
|
||||||
'monokai',
|
|
||||||
'nord_dark',
|
'nord_dark',
|
||||||
'overleaf',
|
|
||||||
'pastel_on_dark',
|
'pastel_on_dark',
|
||||||
'solarized_dark',
|
'solarized_dark',
|
||||||
'solarized_light',
|
'solarized_light',
|
||||||
'sqlserver',
|
'sqlserver',
|
||||||
'terminal',
|
'terminal',
|
||||||
'textmate',
|
|
||||||
'tomorrow',
|
'tomorrow',
|
||||||
'tomorrow_night',
|
'tomorrow_night',
|
||||||
'tomorrow_night_blue',
|
'tomorrow_night_blue',
|
||||||
|
|
|
@ -159,6 +159,9 @@ aside#left-menu.full-size(
|
||||||
)
|
)
|
||||||
each editorTheme in editorThemes
|
each editorTheme in editorThemes
|
||||||
option(value=editorTheme) #{editorTheme.replace(/_/g, ' ')}
|
option(value=editorTheme) #{editorTheme.replace(/_/g, ' ')}
|
||||||
|
option(value="—" disabled) —————————————————
|
||||||
|
each editorTheme in legacyEditorThemes
|
||||||
|
option(value=editorTheme) #{editorTheme.replace(/_/g, ' ')} (Legacy)
|
||||||
|
|
||||||
if (settings.overleaf != null && !isIEEE(brandVariation))
|
if (settings.overleaf != null && !isIEEE(brandVariation))
|
||||||
.form-controls
|
.form-controls
|
||||||
|
|
Loading…
Reference in a new issue