Skip to content

Commit

Permalink
Merge pull request #340 from platformio/font-family
Browse files Browse the repository at this point in the history
Use the editor font-family
  • Loading branch information
noseglid committed Mar 14, 2016
2 parents 629e06f + f3cf6f2 commit 70ca7d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/build-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default class BuildView extends View {
atom.config.observe('build.panelVisibility', ::this.visibleFromConfig);
atom.config.observe('build.panelOrientation', ::this.orientationFromConfig);
atom.config.observe('editor.fontSize', ::this.fontSizeFromConfig);
atom.config.observe('editor.fontFamily', ::this.fontFamilyFromConfig);
atom.commands.add('atom-workspace', 'build:toggle-panel', ::this.toggle);
}

Expand Down Expand Up @@ -250,6 +251,11 @@ export default class BuildView extends View {
this.resizeToNearestRow();
}

fontFamilyFromConfig(family) {
this.css({ 'font-family': family });
this.resizeToNearestRow();
}

reset() {
clearTimeout(this.titleTimer);
this.buildTimer.text(BuildView.initialTimerText());
Expand Down
2 changes: 1 addition & 1 deletion styles/build.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.build {

min-width: 250px;
font-family: Menlo;
font-family: monospace;
font-weight: 600;
font-size: @font-size;

Expand Down

0 comments on commit 70ca7d7

Please sign in to comment.