-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ThemeColor and add support for light themes #1299
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -268,6 +268,125 @@ | |
}, | ||
"pattern": "$rustc" | ||
} | ||
], | ||
"colors": [ | ||
{ | ||
"id": "ralsp.background", | ||
"description": "Background color", | ||
"defaults": { | ||
"dark": "#3F3F3F", | ||
"light": "#001080", | ||
"highContrast": "#000000" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.comment", | ||
"description": "Color for comments", | ||
"defaults": { | ||
"dark": "#7F9F7F", | ||
"light": "#008000", | ||
"highContrast": "#7CA668" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.string", | ||
"description": "Color for strings", | ||
"defaults": { | ||
"dark": "#CC9393", | ||
"light": "#A31515", | ||
"highContrast": "#CE9178" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.unsafe", | ||
"description": "Color for unsafe", | ||
"defaults": { | ||
"dark": "#FF3030", | ||
"light": "#FF1010", | ||
"highContrast": "#FF1010" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.keyword", | ||
"description": "Color for keywords", | ||
"defaults": { | ||
"dark": "#F0DFAF", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW, I'd be perfectly fine with picking a color from default dark theme. This is now configurable, so I can just specify zenburn colors in my config There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I switched to the default colors. |
||
"light": "#0000FF", | ||
"highContrast": "#569CD6" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.control", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there an easy way to allow both
Perhaps we should just name classes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated. I used |
||
"description": "Color for control keywords", | ||
"defaults": { | ||
"dark": "#CF20FB", | ||
"light": "#AF00DB", | ||
"highContrast": "#C586C0" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.function", | ||
"description": "Color for functions", | ||
"defaults": { | ||
"dark": "#93E0E3", | ||
"light": "#795E26", | ||
"highContrast": "#DCDCAA" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.parameter", | ||
"description": "Color for parameters", | ||
"defaults": { | ||
"dark": "#94BFF3", | ||
"light": "#001080", | ||
"highContrast": "#9CDCFE" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.builtin", | ||
"description": "Color for builtins", | ||
"defaults": { | ||
"dark": "#DD6718", | ||
"light": "#DD6718", | ||
"highContrast": "#DD6718" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.text", | ||
"description": "Color for text", | ||
"defaults": { | ||
"dark": "#DCDCCC", | ||
"light": "#000000", | ||
"highContrast": "#FFFFFF" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.attribute", | ||
"description": "Color for attributes", | ||
"defaults": { | ||
"dark": "#BFEBBF", | ||
"light": "#1F4B1F", | ||
"highContrast": "#108010" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.literal", | ||
"description": "Color for literals", | ||
"defaults": { | ||
"dark": "#DFAF8F", | ||
"light": "#09885A", | ||
"highContrast": "#B5CEA8" | ||
} | ||
}, | ||
{ | ||
"id": "ralsp.macro", | ||
"description": "Color for DFAF8F", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't be it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you, fixed in #1305. |
||
"defaults": { | ||
"dark": "#BFEBBF", | ||
"light": "#DD6718", | ||
"highContrast": "#ED7718" | ||
} | ||
} | ||
] | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new syntax for this is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that better? 😅
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is, but the beauty is in the eye of the beholder :)