Skip to content

Commit

Permalink
fix(ui): fix the light theme contrast for editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush-r-bhaskar committed Feb 18, 2025
1 parent a020e3f commit 7538265
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions ui/src/components/inputs/MonacoEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@
}
});
monaco.editor.defineTheme("light", {
base: "vs",
inherit: true,
rules: [
{token: "type", foreground: "#8405FF"},
{token: "string.yaml", foreground: "#001233"},
{token: "comment", foreground: "#8d99ae", fontStyle: "italic"},
],
colors: {
"editor.lineHighlightBackground": "#fbfaff",
"editorLineNumber.foreground": "#444444",
"editor.selectionBackground": "#E8E5FF",
"editor.wordHighlightBackground": "#E8E5FF",
}
});
export default defineComponent({
data() {
return {
Expand Down Expand Up @@ -606,12 +622,12 @@
let options = {
...{
value: this.value,
theme: this.theme,
theme: this.theme === "vs" ? "light" : this.theme,
language: this.language,
suggest: {
showClasses: false,
showWords: false
}
},
},
...this.options
};
Expand Down

0 comments on commit 7538265

Please sign in to comment.