mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Move old Theme specs and apply them to AtomPackage.
This commit is contained in:
@@ -141,8 +141,11 @@ class AtomPackage extends Package
|
||||
oldSheets = _.clone(@stylesheets)
|
||||
@loadStylesheets()
|
||||
removeStylesheet(stylesheetPath) for [stylesheetPath] in oldSheets
|
||||
@reloadStylesheet(stylesheetPath, content) for [stylesheetPath, content] in @stylesheets
|
||||
|
||||
reloadStylesheet: (stylesheetPath, content) ->
|
||||
type = if @metadata.theme then 'theme' else 'bundled'
|
||||
applyStylesheet(stylesheetPath, content, type) for [stylesheetPath, content] in @stylesheets
|
||||
window.applyStylesheet(stylesheetPath, content, type)
|
||||
|
||||
requireMainModule: ->
|
||||
return @mainModule if @mainModule?
|
||||
|
||||
Reference in New Issue
Block a user