Add italic styles to copilot suggestions

Mikayla Maki created

Change summary

styles/src/styleTree/editor.ts     | 4 +---
styles/src/themes/common/syntax.ts | 1 +
2 files changed, 2 insertions(+), 3 deletions(-)

Detailed changes

styles/src/styleTree/editor.ts 🔗

@@ -44,9 +44,7 @@ export default function editor(colorScheme: ColorScheme) {
         activeLineBackground: withOpacity(background(layer, "on"), 0.75),
         highlightedLineBackground: background(layer, "on"),
         // Inline autocomplete suggestions, Co-pilot suggestions, etc.
-        suggestion: {
-            color: syntax.predictive.color,
-        },
+        suggestion: syntax.predictive,
         codeActions: {
             indicator: {
                 color: foreground(layer, "variant"),

styles/src/themes/common/syntax.ts 🔗

@@ -181,6 +181,7 @@ function buildDefaultSyntax(colorScheme: ColorScheme): Syntax {
         },
         predictive: {
             color: color.predictive,
+            italic: true,
         },
         emphasis: {
             color: color.emphasis,