Skip to content

Commit

Permalink
change dark theme of ace editor
Browse files Browse the repository at this point in the history
it looks better :)
-
Ticket: SUITEDEV-29992
  • Loading branch information
hawser86 committed Jan 14, 2022
1 parent e16a647 commit 642444b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/secret-editor/editor-base.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { mapState } from 'vuex';

require('brace/theme/github');
require('brace/theme/dracula');
require('brace/theme/tomorrow_night');
require('brace/mode/text');
require('brace/mode/json');

Expand All @@ -16,7 +16,7 @@ export default {
computed: {
...mapState(['isDarkModeActive']),
editorTheme() {
return this.isDarkModeActive ? 'dracula' : 'github';
return this.isDarkModeActive ? 'tomorrow_night' : 'github';
}
},
watch: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('ValueEditor', () => {
const { vm } = mountWithStore(ValueEditor, { propsData: { value: '{"some":"thing"}' } });
vm.$store.state.isDarkModeActive = true;

expect(vm.editorTheme).to.eql('dracula');
expect(vm.editorTheme).to.eql('tomorrow_night');
});

it('should return light theme if dark mode is inactive', () => {
Expand Down

0 comments on commit 642444b

Please sign in to comment.