Kevin Sawicki
f447781e01
Allow any bundled theme when in safe mode
...
Check enabled names against the bundled names and ensure
one bundled UI and one bundled syntax theme are enabled,
defaulting to the dark themes when necessary.
2014-08-11 15:24:49 -07:00
Maximilian Schüßler
b463d9d876
Load the default themes in safe mode
2014-08-05 13:32:16 +02:00
Ben Ogle
36769c35fc
Don’t need the absolute path, just variables
...
`static` is already on the path
2014-07-11 15:04:00 -07:00
Ben Ogle
9a393a6ec9
Load fallback variables in the user’s stylesheet
2014-07-11 14:08:09 -07:00
Ben Ogle
bbe02fc6b0
Load packages with the fallback variables
2014-07-11 14:07:48 -07:00
Nathan Sobo
76b9982e04
Emit stylesheet-added/removed from ThemeManager w/ CSSStyleSheet objects
...
This enables subscribers to detect not just that stylesheets have
changed, but specifically how they have changed. This is used by the
React editor component to only refresh scrollbars when a stylesheet
that actually contains selectors for scrollbar elements is added or
removed.
2014-05-09 11:33:04 -06:00
Kevin Sawicki
81646532b4
Ignore non-string core.themes config entries
...
Previously exceptions would be raised downstream if invalid theme
names were returned from ThemeManager::getEnabledThemeNames
Closes #1877
2014-04-17 13:33:51 -07:00
Nathan Sobo
2d26382510
Emit 'stylesheet-changed' from atom.themes
...
Whenever stylesheets are applied or removed.
2014-03-19 15:51:36 -06:00
Kevin Sawicki
08ede33b66
Log warning when enabled theme isn't installed
2014-02-20 11:42:04 -08:00
Kevin Sawicki
4cc18cd936
Require File from pathwatcher
2014-02-19 09:19:08 -08:00
Kevin Sawicki
3f8d9a4c47
Combine AtomPackage and Package
2014-02-17 12:59:03 -08:00
Kevin Sawicki
8425c15cd7
💄 Use Array::filter instead of for/in/when
2014-02-10 13:21:08 -08:00
probablycorey
8d40e4df10
Merge remote-tracking branch 'origin/master' into cj-make-package-activation-consistent
...
Conflicts:
package.json
src/package-manager.coffee
src/text-mate-package.coffee
2014-02-07 16:53:24 -08:00
probablycorey
9a51c24937
Make AtomPackage:activate return a promise that is fulfilled when the
...
package is activated.
2014-02-07 11:21:42 -08:00
Kevin Sawicki
dfdab3d006
📝 doc parameters in theme-manager.coffee
2014-02-06 17:33:29 -08:00
Kevin Sawicki
932a792289
Remove Private: prefix
2014-02-06 10:02:53 -08:00
Kevin Sawicki
ece269f158
📝 Consistently mention what classes have global instances
2014-02-04 10:06:37 -08:00
Kevin Sawicki
1b17441bfe
Update default stylesheet name to styles.less
2014-01-30 16:58:20 -08:00
Kevin Sawicki
1c790a3c55
Rename ~/.atom/user.css to ~/.atom/styles.css
2014-01-30 16:53:25 -08:00
Kevin Sawicki
d8c1587534
📝 Mark getters a public
2014-01-22 16:31:10 -08:00
Kevin Sawicki
a4754b2bd5
📝 Mark ThemeManager class public
2014-01-22 16:25:55 -08:00
Kevin Sawicki
59c4c15afd
Add command to open ~/.atom/user.less in an editor
2014-01-20 10:37:13 -08:00
Kevin Sawicki
6a14c0df81
Remove unused package require
2014-01-17 12:40:33 -08:00
Kevin Sawicki
083204f737
💄 Sort requires
2014-01-17 12:40:21 -08:00
Kevin Sawicki
4d17f625f8
Null out file when unwatching
2014-01-17 12:28:30 -08:00
Kevin Sawicki
64ebc37204
Reload user stylesheet when changed
2014-01-17 11:33:25 -08:00
Kevin Sawicki
1006706cf6
Consistently order less cache import paths
2014-01-15 17:42:17 -08:00
Kevin Sawicki
796632c36c
Refresh less cache before activating themes
...
This ensures the import paths for themes contain the stylesheet directories
Closes #1225
2013-12-07 11:31:06 -08:00
Kevin Sawicki
85d5968318
Remove consecutive comment blocks
2013-11-22 15:45:01 -08:00
Kevin Sawicki
7a6c75a83e
Refresh cache when core.themes changes
...
Previously this wasn't needed because a new cache was created for each
stylesheet loaded.
2013-11-21 17:46:29 -08:00
Kevin Sawicki
3e7a517c25
Add missing @ before lessCache lazy initialization
2013-11-21 17:03:10 -08:00
Ben Ogle
6fa7da79eb
Provide a defualt
2013-11-21 14:34:49 -08:00
Ben Ogle
c2371f3054
Allow passing an htmlElement into requireStylesheet
2013-11-21 14:32:48 -08:00
Kevin Sawicki
d4b5303983
Remove remaining package paths from Config class
2013-11-11 10:33:09 -08:00
Kevin Sawicki
78617e31bc
💉 resource path into LessCompileCache
2013-11-11 09:20:48 -08:00
Matt Colyer
43419fdef2
Normalize dom ids rather than remove
2013-11-07 14:41:58 -08:00
Matt Colyer
e312050163
Create valid DOM ids for stylesheets
2013-11-04 16:21:50 -08:00
Kevin Sawicki
9c79e39401
Upgrade to fs-plus@0.4.0
2013-11-01 08:46:03 -07:00
Kevin Sawicki
ebb7a2637a
Upgrade to fs-plus@0.3.0
2013-11-01 08:46:03 -07:00
Kevin Sawicki
ef97dadea1
Update fs-utils references to fs-plus
2013-11-01 08:46:02 -07:00
Ben Ogle
80f4e7eb7f
Add ThemeManager.setEnabledThemes
2013-10-22 18:09:21 -07:00
Ben Ogle
967c04fb19
Clean up theme check in PackageManager with PackageActivators
...
You can now call `PackageManager.registerPackageActivator` for specific
package types. On `PackageManager.activate` it will call your
`PackageActivator.activatePackages(packages)` with the proper packages.
2013-10-22 15:07:09 -07:00
Ben Ogle
2624cf6e75
oops, don't deactivate all the packages!
2013-10-22 15:06:54 -07:00
Ben Ogle
0b74dfc67a
Remove unnecessary lines
2013-10-22 15:06:25 -07:00
Ben Ogle
4440210d9a
Fix tests
2013-10-22 15:06:25 -07:00
Ben Ogle
56832b11fc
Refactor pkg and themeManager -- all themes stored in the pkg manager
2013-10-22 15:06:25 -07:00
Ben Ogle
077cb9ddb7
Add an enableTheme() function to ThemeManager
...
And use it in the activatePackage() function in PackageManager
2013-10-22 15:04:55 -07:00
Kevin Sawicki
9d51d1a143
Use jquery provided by space-pen
2013-10-16 13:34:41 -07:00
Kevin Sawicki
216a5e61fd
Update underscore-extensions requires
2013-10-15 13:50:16 -07:00
Kevin Sawicki
9fe32954dc
Update classes for emissary API
2013-10-14 17:28:26 -07:00