mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Webconfig: Fix customizing ayu themes
These used a different object format, so they were passed to interpret_color wrong. Because the "common" and "syntax" division doesn't really help all that much, let's just flatten the thing. See #7596.
This commit is contained in:
parent
cf8219e3ce
commit
f547c2fda8
1 changed files with 64 additions and 76 deletions
|
@ -258,91 +258,79 @@ var color_scheme_fish_default = {
|
|||
|
||||
var ayuTheme = {
|
||||
ayu_dark: {
|
||||
common: {
|
||||
accent: 'E6B450',
|
||||
bg: '0A0E14',
|
||||
fg: 'B3B1AD',
|
||||
ui: '4D5566'
|
||||
},
|
||||
syntax: {
|
||||
tag: '39BAE6',
|
||||
func: 'FFB454',
|
||||
entity: '59C2FF',
|
||||
string: 'C2D94C',
|
||||
regexp: '95E6CB',
|
||||
markup: 'F07178',
|
||||
keyword: 'FF8F40',
|
||||
special: 'E6B673',
|
||||
comment: '626A73',
|
||||
constant: 'FFEE99',
|
||||
operator: 'F29668',
|
||||
error: 'FF3333'
|
||||
}
|
||||
'accent': 'E6B450',
|
||||
'bg': '0A0E14',
|
||||
'fg': 'B3B1AD',
|
||||
'ui': '4D5566',
|
||||
'tag': '39BAE6',
|
||||
'func': 'FFB454',
|
||||
'entity': '59C2FF',
|
||||
'string': 'C2D94C',
|
||||
'regexp': '95E6CB',
|
||||
'markup': 'F07178',
|
||||
'keyword': 'FF8F40',
|
||||
'special': 'E6B673',
|
||||
'comment': '626A73',
|
||||
'constant': 'FFEE99',
|
||||
'operator': 'F29668',
|
||||
'error': 'FF3333',
|
||||
},
|
||||
|
||||
ayu_light: {
|
||||
common: {
|
||||
accent: 'FF9940',
|
||||
bg: 'FAFAFA',
|
||||
fg: '575F66',
|
||||
ui: '8A9199'
|
||||
},
|
||||
syntax: {
|
||||
tag: '55B4D4',
|
||||
func: 'F2AE49',
|
||||
entity: '399EE6',
|
||||
string: '86B300',
|
||||
regexp: '4CBF99',
|
||||
markup: 'F07171',
|
||||
keyword: 'FA8D3E',
|
||||
special: 'E6BA7E',
|
||||
comment: 'ABB0B6',
|
||||
constant: 'A37ACC',
|
||||
operator: 'ED9366',
|
||||
error: 'F51818'
|
||||
}
|
||||
'accent': 'FF9940',
|
||||
'bg': 'FAFAFA',
|
||||
'fg': '575F66',
|
||||
'ui': '8A9199',
|
||||
'tag': '55B4D4',
|
||||
'func': 'F2AE49',
|
||||
'entity': '399EE6',
|
||||
'string': '86B300',
|
||||
'regexp': '4CBF99',
|
||||
'markup': 'F07171',
|
||||
'keyword': 'FA8D3E',
|
||||
'special': 'E6BA7E',
|
||||
'comment': 'ABB0B6',
|
||||
'constant': 'A37ACC',
|
||||
'operator': 'ED9366',
|
||||
'error': 'F51818',
|
||||
},
|
||||
|
||||
ayu_mirage: {
|
||||
common: {
|
||||
accent: 'FFCC66',
|
||||
bg: '1F2430',
|
||||
fg: 'CBCCC6',
|
||||
ui: '707A8C'
|
||||
},
|
||||
syntax: {
|
||||
tag: '5CCFE6',
|
||||
func: 'FFD580',
|
||||
entity: '73D0FF',
|
||||
string: 'BAE67E',
|
||||
regexp: '95E6CB',
|
||||
markup: 'F28779',
|
||||
keyword: 'FFA759',
|
||||
special: 'FFE6B3',
|
||||
comment: '5C6773',
|
||||
constant: 'D4BFFF',
|
||||
operator: 'F29E74',
|
||||
error: 'FF3333'
|
||||
}
|
||||
'accent': 'FFCC66',
|
||||
'bg': '1F2430',
|
||||
'fg': 'CBCCC6',
|
||||
'ui': '707A8C',
|
||||
'tag': '5CCFE6',
|
||||
'func': 'FFD580',
|
||||
'entity': '73D0FF',
|
||||
'string': 'BAE67E',
|
||||
'regexp': '95E6CB',
|
||||
'markup': 'F28779',
|
||||
'keyword': 'FFA759',
|
||||
'special': 'FFE6B3',
|
||||
'comment': '5C6773',
|
||||
'constant': 'D4BFFF',
|
||||
'operator': 'F29E74',
|
||||
'error': 'FF3333',
|
||||
},
|
||||
|
||||
apply: function(theme, receiver) {
|
||||
receiver['preferred_background'] = theme.common.bg
|
||||
receiver['autosuggestion'] = theme.common.ui
|
||||
receiver['command'] = theme.syntax.tag
|
||||
receiver['comment'] = theme.syntax.comment
|
||||
receiver['cwd'] = theme.syntax.entity
|
||||
receiver['end'] = theme.syntax.operator
|
||||
receiver['error'] = theme.syntax.error
|
||||
receiver['escape'] = theme.syntax.regexp
|
||||
receiver['match'] = theme.syntax.markup
|
||||
receiver['normal'] = theme.common.fg
|
||||
receiver['operator'] = theme.syntax.accent
|
||||
receiver['param'] = theme.common.fg
|
||||
receiver['quote'] = theme.syntax.string
|
||||
receiver['redirection'] = theme.syntax.constant
|
||||
receiver['search_match'] = theme.syntax.accent
|
||||
receiver['selection'] = theme.syntax.accent
|
||||
receiver['preferred_background'] = theme.bg
|
||||
receiver['autosuggestion'] = theme.ui
|
||||
receiver['command'] = theme.tag
|
||||
receiver['comment'] = theme.comment
|
||||
receiver['cwd'] = theme.entity
|
||||
receiver['end'] = theme.operator
|
||||
receiver['error'] = theme.error
|
||||
receiver['escape'] = theme.regexp
|
||||
receiver['match'] = theme.markup
|
||||
receiver['normal'] = theme.fg
|
||||
receiver['operator'] = theme.accent
|
||||
receiver['param'] = theme.fg
|
||||
receiver['quote'] = theme.string
|
||||
receiver['redirection'] = theme.constant
|
||||
receiver['search_match'] = theme.accent
|
||||
receiver['selection'] = theme.accent
|
||||
|
||||
receiver['colors'] = []
|
||||
for (var key in theme) receiver['colors'].push(theme[key])
|
||||
|
|
Loading…
Reference in a new issue