Skip to content

Commit 9e81bda

Browse files
authored
fix: Colors for variable, function and constant should be different (#4802)
1 parent 7a4f9e2 commit 9e81bda

9 files changed

+9
-27
lines changed

lib/ace/theme/chrome.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@
8080
color: rgb(0, 0, 205);
8181
}
8282

83-
.ace-chrome .ace_variable,
84-
.ace-chrome .ace_variable:not(.ace_parameter),
85-
.ace-chrome .ace_constant:not(.ace_numeric) {
83+
.ace-chrome .ace_variable {
8684
color: rgb(49, 132, 149);
8785
}
8886

lib/ace/theme/merbivore.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@
6363
.ace-merbivore .ace_constant.ace_character,
6464
.ace-merbivore .ace_constant.ace_character.ace_escape,
6565
.ace-merbivore .ace_constant.ace_other,
66-
.ace-merbivore .ace_support.ace_type,
67-
.ace-merbivore .ace_variable:not(.ace_parameter),
68-
.ace-merbivore .ace_constant:not(.ace_numeric) {
66+
.ace-merbivore .ace_support.ace_type {
6967
color: #1EDAFB
7068
}
7169

lib/ace/theme/merbivore_soft.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@
6262
.ace-merbivore-soft .ace_constant.ace_character,
6363
.ace-merbivore-soft .ace_constant.ace_character.ace_escape,
6464
.ace-merbivore-soft .ace_constant.ace_other,
65-
.ace-merbivore-soft .ace_support.ace_type,
66-
.ace-merbivore-soft .ace_variable:not(.ace_parameter),
67-
.ace-merbivore-soft .ace_constant:not(.ace_numeric) {
65+
.ace-merbivore-soft .ace_support.ace_type {
6866
color: #68C1D8
6967
}
7068

lib/ace/theme/tomorrow.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@
9292

9393
.ace-tomorrow .ace_entity.ace_name.ace_function,
9494
.ace-tomorrow .ace_support.ace_function,
95-
.ace-tomorrow .ace_variable,
96-
.ace-tomorrow .ace_variable:not(.ace_parameter),
97-
.ace-tomorrow .ace_constant:not(.ace_numeric) {
95+
.ace-tomorrow .ace_variable {
9896
color: #4271AE
9997
}
10098

lib/ace/theme/tomorrow_night.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@
9292

9393
.ace-tomorrow-night .ace_entity.ace_name.ace_function,
9494
.ace-tomorrow-night .ace_support.ace_function,
95-
.ace-tomorrow-night .ace_variable,
96-
.ace-tomorrow-night .ace_variable:not(.ace_parameter),
97-
.ace-tomorrow-night .ace_constant:not(.ace_numeric) {
95+
.ace-tomorrow-night .ace_variable {
9896
color: #81A2BE
9997
}
10098

lib/ace/theme/tomorrow_night_blue.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@
8989

9090
.ace-tomorrow-night-blue .ace_entity.ace_name.ace_function,
9191
.ace-tomorrow-night-blue .ace_support.ace_function,
92-
.ace-tomorrow-night-blue .ace_variable,
93-
.ace-tomorrow-night-blue .ace_variable:not(.ace_parameter),
94-
.ace-tomorrow-night-blue .ace_constant:not(.ace_numeric) {
92+
.ace-tomorrow-night-blue .ace_variable {
9593
color: #BBDAFF
9694
}
9795

lib/ace/theme/tomorrow_night_bright.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@
104104

105105
.ace-tomorrow-night-bright .ace_entity.ace_name.ace_function,
106106
.ace-tomorrow-night-bright .ace_support.ace_function,
107-
.ace-tomorrow-night-bright .ace_variable,
108-
.ace-tomorrow-night-bright .ace_variable:not(.ace_parameter),
109-
.ace-tomorrow-night-bright .ace_constant:not(.ace_numeric) {
107+
.ace-tomorrow-night-bright .ace_variable {
110108
color: #7AA6DA
111109
}
112110

lib/ace/theme/tomorrow_night_eighties.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@
9393

9494
.ace-tomorrow-night-eighties .ace_entity.ace_name.ace_function,
9595
.ace-tomorrow-night-eighties .ace_support.ace_function,
96-
.ace-tomorrow-night-eighties .ace_variable,
97-
.ace-tomorrow-night-eighties .ace_variable:not(.ace_parameter),
98-
.ace-tomorrow-night-eighties .ace_constant:not(.ace_numeric) {
96+
.ace-tomorrow-night-eighties .ace_variable {
9997
color: #6699CC
10098
}
10199

lib/ace/theme/xcode.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@
7070

7171
.ace-xcode .ace_entity.ace_other.ace_attribute-name,
7272
.ace-xcode .ace_support.ace_constant,
73-
.ace-xcode .ace_support.ace_function,
74-
.ace-xcode .ace_variable:not(.ace_parameter),
75-
.ace-xcode .ace_constant:not(.ace_numeric) {
73+
.ace-xcode .ace_support.ace_function {
7674
color: #450084
7775
}
7876

0 commit comments

Comments
 (0)