FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
atom/src/theme-package.coffee at master · tml/atom · GitHub
tml
atom
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
atom
/
src
/
theme-package.coffee
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (24 loc) · 725 Bytes
Breadcrumbs
atom
/
src
/
theme-package.coffee
Copy path
File metadata and controls
32 lines (24 loc) · 725 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Q
=
require
'
q
'
Package
=
require
'
./package
'
module
.
exports
=
class
ThemePackage
extends
Package
getType
:
->
'
theme
'
getStyleSheetPriority
:
->
1
enable
:
->
atom
.
config
.
unshiftAtKeyPath
(
'
core.themes
'
,
@name
)
disable
:
->
atom
.
config
.
removeAtKeyPath
(
'
core.themes
'
,
@name
)
load
:
->
@
measure
'
loadTime
'
,
=>
try
@metadata
?=
Package
.
loadMetadata
(
@path
)
catch
error
console
.
warn
"
Failed to load theme named '
#{
@name
}
'
"
,
error
.
stack
?
error
this
activate
:
->
return
@activationDeferred
.
promise
if
@activationDeferred
?
@activationDeferred
=
Q
.
defer
()
@
measure
'
activateTime
'
,
=>
@
loadStylesheets
()
@
activateNow
()
@activationDeferred
.
promise
Back
|
FazBrowse Home
|
New Git URL