Skip to content

Commit

Permalink
Update themes on config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred-Barclay and mattlyons0 committed Oct 26, 2019
1 parent a015197 commit 65f3550
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ Daniel Peach (https://github.com/djpeach)

Matt Lyons (https://github.com/mattlyons0)
* Added toggle to disable toolbar buttons
* Update themes on config changes without requiring terminal reload
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 0.7.5 (in progress)
* Add setting to disable toolbar buttons (from @mattlyons0)
* Update themes on config changes without requiring terminal reload (from @mattlyons0)

## 0.7.4
* Update node-pyt-prebuilt-multiarch to 0.9.0-beta21.legacy to fix Electron 3 issues with Windows 10 (see issue #99)
Expand Down
4 changes: 4 additions & 0 deletions lib/view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ class TerminationView extends View
@xterm.addClass config.style.theme
@xterm.addClass 'cursor-blink' if config.toggles.cursorBlink

@subscriptions.add atom.config.onDidChange 'termination.style.theme', (event) =>
@xterm.removeClass event.oldValue
@xterm.addClass event.newValue

ansiColors = require('./themes/' + config.style.theme)

editorFont = atom.config.get('editor.fontFamily')
Expand Down

0 comments on commit 65f3550

Please sign in to comment.