Skip to content

Commit

Permalink
GHI-#36 Implement the main coffeescript
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticicestudio committed Oct 22, 2016
1 parent 4a130b7 commit e86aeef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/main.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = document.documentElement;

module.exports =
activate: (state) ->
atom.config.observe 'nord-atom-ui.tabSizing', (noFullWidth) ->
setTabSizing(noFullWidth)

deactivate: ->
unsetTabSizing()

setTabSizing = (noFullWidth) ->
if (noFullWidth)
unsetTabSizing()
else
root.setAttribute('theme-nord-atom-ui-tabsizing', "nofullwidth")

unsetTabSizing = ->
root.removeAttribute('theme-nord-atom-ui-tabsizing')
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"bugs": {
"url": "https://github.com/arcticicestudio/nord-atom-ui/issues"
},
"main": "./lib/main",
"keywords": [
"arctic",
"north",
Expand Down

0 comments on commit e86aeef

Please sign in to comment.