Skip to content

Commit

Permalink
[themes][semantic] default themes: new constant color. Fixes #95346
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Apr 15, 2020
1 parent d1011e2 commit b02307e
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 18 deletions.
26 changes: 13 additions & 13 deletions extensions/ruby/test/colorize-results/test_rb.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@
"c": "Models",
"t": "source.ruby variable.other.constant.ruby",
"r": {
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_plus": "variable.other.constant: #D4D4D4",
"light_plus": "variable.other.constant: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "variable: #9CDCFE"
Expand Down Expand Up @@ -476,8 +476,8 @@
"c": "MsRestAzure",
"t": "source.ruby variable.other.constant.ruby",
"r": {
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_plus": "variable.other.constant: #D4D4D4",
"light_plus": "variable.other.constant: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "variable: #9CDCFE"
Expand Down Expand Up @@ -1191,8 +1191,8 @@
"c": "ArgumentError",
"t": "source.ruby variable.other.constant.ruby",
"r": {
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_plus": "variable.other.constant: #D4D4D4",
"light_plus": "variable.other.constant: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "variable: #9CDCFE"
Expand Down Expand Up @@ -1345,8 +1345,8 @@
"c": "ArgumentError",
"t": "source.ruby variable.other.constant.ruby",
"r": {
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_plus": "variable.other.constant: #D4D4D4",
"light_plus": "variable.other.constant: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "variable: #9CDCFE"
Expand Down Expand Up @@ -1499,8 +1499,8 @@
"c": "ServiceClientCredentials",
"t": "source.ruby variable.other.constant.ruby",
"r": {
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_plus": "variable.other.constant: #D4D4D4",
"light_plus": "variable.other.constant: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "variable: #9CDCFE"
Expand Down Expand Up @@ -2269,8 +2269,8 @@
"c": "MAVERICKS_PKG_PATH",
"t": "source.ruby string.interpolated.ruby meta.embedded.line.ruby source.ruby variable.other.constant.ruby",
"r": {
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_plus": "variable.other.constant: #D4D4D4",
"light_plus": "variable.other.constant: #000000",
"dark_vs": "meta.embedded: #D4D4D4",
"light_vs": "meta.embedded: #000000",
"hc_black": "variable: #9CDCFE"
Expand Down Expand Up @@ -2837,4 +2837,4 @@
"hc_black": "keyword.control: #C586C0"
}
}
]
]
10 changes: 10 additions & 0 deletions extensions/theme-defaults/themes/dark_plus.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@
"foreground": "#9CDCFE"
}
},
{
"name": "Constants and enums",
"scope": [
"variable.other.constant",
"variable.other.enummember"
],
"settings": {
"foreground": "#D4D4D4",
}
},
{
"name": "Object keys, TS grammar specific",
"scope": [
Expand Down
10 changes: 10 additions & 0 deletions extensions/theme-defaults/themes/light_plus.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@
"foreground": "#001080"
}
},
{
"name": "Constants and enums",
"scope": [
"variable.other.constant",
"variable.other.enummember"
],
"settings": {
"foreground": "#000000",
}
},
{
"name": "Object keys, TS grammar specific",
"scope": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2962,8 +2962,8 @@
"c": "t",
"t": "source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.constant.ts",
"r": {
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_plus": "variable.other.constant: #D4D4D4",
"light_plus": "variable.other.constant: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "variable: #9CDCFE"
Expand Down Expand Up @@ -3398,4 +3398,4 @@
"hc_black": "default: #FFFFFF"
}
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@
"c": "timeRange",
"t": "source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.constant.ts",
"r": {
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_plus": "variable.other.constant: #D4D4D4",
"light_plus": "variable.other.constant: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "variable: #9CDCFE"
Expand Down

0 comments on commit b02307e

Please sign in to comment.