Skip to content

Commit

Permalink
[show-hints] support themes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderPrendota authored and marijnh committed Jun 26, 2018
1 parent ed8dfeb commit 70408ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion addon/hint/show-hint.js
Expand Up @@ -200,7 +200,8 @@
var widget = this, cm = completion.cm;

var hints = this.hints = document.createElement("ul");
hints.className = "CodeMirror-hints";
var theme = completion.cm.options.theme;
hints.className = "CodeMirror-hints " + theme;
this.selectedHint = data.selectedHint || 0;

var completions = data.list;
Expand Down
4 changes: 2 additions & 2 deletions theme/darcula.css
Expand Up @@ -34,13 +34,13 @@
.cm-s-darcula { font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;}
.cm-s-darcula .CodeMirror-matchingbracket { outline:1px solid #A9B7C6; color: yellow !important; }

.CodeMirror-hints {
.CodeMirror-hints.darcula {
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
color: #9c9e9e;
background-color: #3b3e3f !important;
}

.CodeMirror-hint-active {
.CodeMirror-hints.darcula .CodeMirror-hint-active {
background-color: #494d4e !important;
color: #9c9e9e !important;
}
4 changes: 2 additions & 2 deletions theme/idea.css
Expand Up @@ -30,13 +30,13 @@

.cm-s-idea .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }

.CodeMirror-hints {
.CodeMirror-hints.idea {
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
color: #616569;
background-color: #ebf3fd !important;
}

.CodeMirror-hint-active {
.CodeMirror-hints.idea .CodeMirror-hint-active {
background-color: #a2b8c9 !important;
color: #5c6065 !important;
}

0 comments on commit 70408ce

Please sign in to comment.