Commit Graph

45 Commits

Author SHA1 Message Date
Kevin Sawicki
c700ca0430 Remove unused sync option 2014-05-21 08:55:40 -07:00
Nathan Sobo
84e76556da Try to fix flaky spec 2014-05-20 11:11:35 -06:00
Nathan Sobo
f2c7d171bf Fix another subscription leakage associated with theme manager specs 2014-05-16 09:14:21 -06: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
Corey Johnson
fd7951b2c6 Remove focused spec 2014-04-22 09:51:15 -07: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
0307c0e6c9 Rename ~/.atom/styles.css to ~/.atom/styles.less 2014-02-24 16:14:05 -08:00
Kevin Sawicki
a651254e38 Require fs-plus directly in specs 2014-02-23 17:19:00 -08:00
Kevin Sawicki
08ede33b66 Log warning when enabled theme isn't installed 2014-02-20 11:42:04 -08:00
Kevin Sawicki
3f8d9a4c47 Combine AtomPackage and Package 2014-02-17 12:59:03 -08:00
probablycorey
d9a47f256c Update specs 2014-02-07 11:21:52 -08:00
Kevin Sawicki
caa16f2718 Update user stylesheet path in spec 2014-01-30 16:58:35 -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
e45aeecb0a Update specs now that syntax themes have stylesheets folders 2013-12-06 13:24:34 -08:00
Kevin Sawicki
3ce6176313 Rename rootView to workspaceView 2013-11-26 11:02:53 -08:00
Kevin Sawicki
b19390b519 Add missing atom prefix to rootView and project 2013-11-20 17:23:48 -08:00
Kevin Sawicki
d0b380e535 Add atom prefix to rootView and project references 2013-11-20 17:23:47 -08:00
Kevin Sawicki
f9498732a5 Add atom prefix to rootView 2013-11-20 17:23:47 -08:00
Kevin Sawicki
81c56ca4f1 Set configDirPath on ThemeManager in specs 2013-11-11 11:47:24 -08:00
Kevin Sawicki
d0e1d32ae9 Use resource path from load settings 2013-11-11 10:32:01 -08:00
Kevin Sawicki
78617e31bc 💉 resource path into LessCompileCache 2013-11-11 09:20:48 -08:00
Kevin Sawicki
a377a49004 Use atom.config instead of window.config 2013-11-11 09:16:44 -08:00
Matt Colyer
28d7160c3b Update specs concerning stylesheet ids 2013-11-06 17:12:47 -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
059671c454 🐎 Load packages by path
Previously the package paths were converted to names and then
re-resolved to paths.

Now we just load the paths directly reducing the number of stat calls
and saving ~50ms in PackageManager::loadPackages

Also now internal packages are loaded by parsing the package.json
file for packageDependencies instead of loading the metadata for all
packages in node_modules and checking the engines field.
2013-10-29 13:31:42 -07:00
Ben Ogle
abe36765b5 Fix test for both local and janky 2013-10-22 15:06:25 -07:00
Ben Ogle
eaea8753f5 nof 2013-10-22 15:06:25 -07:00
Ben Ogle
0b74dfc67a Remove unnecessary lines 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
Kevin Sawicki
c808630ba1 Move all stylesheet globals to ThemeManager 2013-10-02 13:40:32 -07:00
Kevin Sawicki
5de21e2cd7 Ignore theme names that cannot be resolved 2013-10-02 11:24:39 -07:00
Kevin Sawicki
6a0fcc9330 Verify style.theme instead of style.userTheme
This caused specs to fail locally but not on CI since CI has
not user theme
2013-09-20 10:03:02 -07:00
Kevin Sawicki
d46891caf0 Rename atom-api require to atom 2013-09-20 10:03:02 -07:00
Kevin Sawicki
3c94ca4b9e Use relative paths in spec requires 2013-09-20 10:02:20 -07:00
Ben Ogle
1ba04cb58a Reverse the loading order of themes.
We want the first/top-most theme's css to be loaded after the others 
so its styles will override styles in the other themes.
2013-09-16 18:09:01 -07:00
Matt Colyer
382a7b8a7f Update specs to reflect new functionality 2013-09-13 16:21:07 -07:00
Matt Colyer
a4fd23b645 Remove unused Theme class 2013-09-13 13:50:25 -07:00
Ben Ogle
48f01c66e2 Change Theme load verbiage to activate
This is to be more consistent with packages.
2013-09-12 14:02:54 -07:00
Ben Ogle
261d386809 Add a theme-added event to the theme manager 2013-09-12 14:02:53 -07:00
Ben Ogle
1d7f5845d0 remove duplicate spec 2013-09-04 12:25:28 -07:00
Ben Ogle
9c5c05ff41 Get the proper directories before themeManage load 2013-09-04 12:25:27 -07:00
Kevin Sawicki
a7a1244599 Flatten spec directory 2013-08-19 20:13:58 -07:00