code-editor: Update code highlight theme colors. (#888)

This commit is contained in:
Jason Lee 2025-05-25 10:21:37 +08:00 committed by GitHub
parent f539817d9b
commit c99e696cb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 12 deletions

View file

@ -131,9 +131,9 @@ impl Render for Example {
.id("source")
.w_full()
.flex_1()
.font_family("Menlo")
.font_family("Monaco")
.p_4()
.text_size(px(13.))
.text_size(px(12.))
.child(TextInput::new(&self.input_state).h_full()),
)
}

View file

@ -110,7 +110,7 @@
<key>name</key>
<string>Function Name</string>
<key>scope</key>
<string>entity.name.function, support.function, support.function.any-method</string>
<string>entity.name.function, support.function, support.function.any-method, variable.annotation</string>
<key>settings</key>
<dict>
<key>foreground</key>
@ -121,9 +121,9 @@
<!-- Keyword -->
<dict>
<key>name</key>
<string>Keyword</string>
<string>Keyword, self</string>
<key>scope</key>
<string>keyword, storage</string>
<string>keyword, storage, variable.language</string>
<key>settings</key>
<dict>
<key>foreground</key>
@ -136,7 +136,7 @@
<key>name</key>
<string>Class</string>
<key>scope</key>
<string>support.class, support.type, entity.name.class, entity.name.type.class, meta.class</string>
<string>entity, support.class, support.type, entity.name.class, entity.name.trait, meta.class</string>
<key>settings</key>
<dict>
<key>foreground</key>
@ -296,7 +296,7 @@
<key>name</key>
<string>Variable</string>
<key>scope</key>
<string>variable.language, variable.other</string>
<string>variable.other</string>
<key>settings</key>
<dict>
<key>foreground</key>

View file

@ -71,9 +71,9 @@
<!-- Constant -->
<dict>
<key>name</key>
<string>Constant</string>
<string>Constant, self</string>
<key>scope</key>
<string>constant, constant.other</string>
<string>constant, constant.other, variable.language</string>
<key>settings</key>
<dict>
<key>foreground</key>
@ -107,6 +107,19 @@
</dict>
</dict>
<dict>
<key>name</key>
<string>Annotation</string>
<key>scope</key>
<string>variable.annotation</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#9D8550</string> <!-- syntax.embedded.color -->
</dict>
</dict>
<!-- Function -->
<dict>
<key>name</key>
@ -137,7 +150,7 @@
<key>name</key>
<string>Class</string>
<key>scope</key>
<string>support.class, support.type, entity.name.class, entity.name.type.class, meta.class</string>
<string>entity, support.class, support.type, entity.name.class, entity.name.type.class, meta.class, entity.name.constant, entity.name.namespace</string>
<key>settings</key>
<dict>
<key>foreground</key>
@ -191,7 +204,7 @@
<key>name</key>
<string>String</string>
<key>scope</key>
<string>string, string.quoted</string>
<string>string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple</string>
<key>settings</key>
<dict>
<key>foreground</key>
@ -297,7 +310,7 @@
<key>name</key>
<string>Variable</string>
<key>scope</key>
<string>variable.language, variable.other</string>
<string>variable.other</string>
<key>settings</key>
<dict>
<key>foreground</key>