Commit ff17092b authored by Himanshu Kapoor's avatar Himanshu Kapoor

Add "None" theme for the Web IDE

Add support for None (lack of a theme) theme for the Web IDE
parent 972c347a
......@@ -3,6 +3,7 @@ import dark from './dark';
import monokai from './monokai';
import solarizedLight from './solarized_light';
import solarizedDark from './solarized_dark';
import none from './none';
export const themes = [
{
......@@ -25,6 +26,10 @@ export const themes = [
name: 'monokai',
data: monokai,
},
{
name: 'none',
data: none,
},
];
export const DEFAULT_THEME = 'white';
export default {
base: 'vs',
inherit: false,
rules: [],
colors: {
'editor.foreground': '#2e2e2e',
'editor.selectionBackground': '#aad6f8',
'editor.lineHighlightBackground': '#fffeeb',
'editorCursor.foreground': '#666666',
'editorWhitespace.foreground': '#bbbbbb',
'editorLineNumber.foreground': '#cccccc',
'diffEditor.insertedTextBackground': '#a0f5b420',
'diffEditor.removedTextBackground': '#f9d7dc20',
'editorIndentGuide.activeBackground': '#cccccc',
},
};
......@@ -76,8 +76,9 @@
min-height: 0; // firefox fix
}
// Apply theme related overrides only to the white theme
.theme-white .blob-editor-container {
// Apply theme related overrides only to the white theme and none theme
.theme-white .blob-editor-container,
.theme-none .blob-editor-container {
.monaco-diff-editor {
.editor.modified {
box-shadow: none;
......@@ -139,7 +140,8 @@
}
}
.theme-white .multi-file-editor-holder {
.theme-white .multi-file-editor-holder,
.theme-none .multi-file-editor-holder {
&.is-readonly,
.editor.original {
.monaco-editor,
......
---
title: None syntax highlighting theme for Web IDE
merge_request: 31056
author:
type: added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment