Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ff17092b
Commit
ff17092b
authored
May 05, 2020
by
Himanshu Kapoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "None" theme for the Web IDE
Add support for None (lack of a theme) theme for the Web IDE
parent
972c347a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
3 deletions
+32
-3
app/assets/javascripts/ide/lib/themes/index.js
app/assets/javascripts/ide/lib/themes/index.js
+5
-0
app/assets/javascripts/ide/lib/themes/none.js
app/assets/javascripts/ide/lib/themes/none.js
+17
-0
app/assets/stylesheets/page_bundles/_ide_monaco_overrides.scss
...ssets/stylesheets/page_bundles/_ide_monaco_overrides.scss
+5
-3
changelogs/unreleased/216543-none-syntax-highlighting-theme-for-web-ide.yml
...sed/216543-none-syntax-highlighting-theme-for-web-ide.yml
+5
-0
No files found.
app/assets/javascripts/ide/lib/themes/index.js
View file @
ff17092b
...
...
@@ -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
'
;
app/assets/javascripts/ide/lib/themes/none.js
0 → 100644
View file @
ff17092b
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
'
,
},
};
app/assets/stylesheets/page_bundles/_ide_monaco_overrides.scss
View file @
ff17092b
...
...
@@ -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
,
...
...
changelogs/unreleased/216543-none-syntax-highlighting-theme-for-web-ide.yml
0 → 100644
View file @
ff17092b
---
title
:
None syntax highlighting theme for Web IDE
merge_request
:
31056
author
:
type
:
added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment