Ross Allen
212c4fa6fc
Use Returns keyword in ThemeManager public docs
...
Use the `Returns` keyword in `get*Theme` function docs so they are put
in panels like other return values in docs.
2015-07-28 14:49:33 -07:00
Kevin Sawicki
e39df0e40d
Conditionally include deprecations in ThemeManager
2015-04-03 11:29:17 -07:00
Kevin Sawicki
27ffac5f1a
Set less property on caught error
2015-03-24 13:17:57 -07:00
Kevin Sawicki
40b4e36c09
Add custom formatting for Less errors
2015-03-24 13:17:56 -07:00
Kevin Sawicki
e3fe418b45
Listen on stylesheet file
2015-03-05 13:49:12 -08:00
Kevin Sawicki
eae3dab527
Use onDid* for file events
2015-03-05 13:47:28 -08:00
Kevin Sawicki
853ad9cee3
Re-throw stylesheet compile errors
...
This makes it consistent with other read errors. Previously a Notification
was returned in the error case causing errors downstream where the package's
stylesheets array was assumed to be a path/content tuple.
Closes atom/deprecation-cop#22
2015-02-02 17:55:36 -08:00
Ben Ogle
4be793f465
Post notifications when the user’s sheet cannot be loaded / parsed
2015-01-14 16:15:53 -08:00
Nathan Sobo
c078f64293
Rename package stylesheets/ directory to styles/
2015-01-09 08:42:15 -08:00
Nathan Sobo
c3efed0a2c
Update deprecation messages
2015-01-08 18:21:07 -08:00
Nathan Sobo
a945725a2f
Add shims for tests that manually dispatch deprecated events
2015-01-08 17:51:11 -08:00
Nathan Sobo
30513cfde0
Rename ThemeManager methods for clarity/consistency
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-01-08 17:51:09 -08:00
Nathan Sobo
d999b4eca0
Deprecate ThemeManager::setEnabledThemes
...
Suggest direct config write instead.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-01-08 17:48:32 -08:00
Nathan Sobo
7dd67caf57
Remove ‘group’ parameter to addStyleSheet in favor of ‘priority’
2015-01-07 09:51:42 -07:00
Nathan Sobo
62adc98b17
Use ‘user’ group for user style sheet instead of ‘userTheme’
2015-01-06 19:33:39 -07:00
Ben Ogle
3fc514659a
Remove workspaceView references from ThemeManager
2014-11-19 17:46:32 -08:00
Nathan Sobo
49471070a3
Move public stylesheet related methods off of atom.themes
...
* Move atom.themes.getUserStylesheetPath to
atom.styles.getUserStyleSheetPath
* Deprecate atom.themes.requireStylesheet
2014-11-19 10:31:03 -07:00
Nathan Sobo
be7111f007
Deprecate style sheet events on ThemeManager
...
They are now supplanted by methods on the StyleManager located at
`atom.styles`.
2014-11-18 10:57:07 -07:00
Nathan Sobo
59c28c0f76
Clarify documentation
2014-11-18 10:56:28 -07:00
Nathan Sobo
d3f2798472
💄
2014-11-17 16:55:30 -07:00
Nathan Sobo
99b08826dd
Style non-shadow DOM editor with it’s own style sheet
...
Trying to style both modes of the text editor with the same style sheet
is proving to be more trouble than it’s worth. This prepares the shadow
DOM style sheet to diverge more radically to enable the background color
to be overridden from the outside more easily.
2014-11-13 16:04:24 -08:00
Nathan Sobo
7202908780
Split editor stylesheet into light and shadow DOM versions
...
This prevents the need for a :host pseudo-class in the editor CSS which
breaks linting. It also fits selectors targeting the host element in a
more intuitive spot in the cascade.
2014-11-04 16:37:24 -07:00
Nathan Sobo
596987fbce
Fix sourcePath on text editor stylesheet loading
2014-11-04 16:37:21 -07:00
Nathan Sobo
c2d0b6d4f5
Load editor stylesheet in shadow root with style manager context param
2014-11-04 16:37:21 -07:00
Ben Ogle
022bc2e2a5
Only load the bootstrap styles we need!
2014-11-04 12:28:53 -08:00
Kevin Sawicki
6e827434fd
Log a warning when a enabled theme isn't installed
2014-10-30 10:04:38 -07:00
Lee Dohm
d20e91897a
Load the default themes when configured themes don't exist
2014-10-29 19:42:42 -07:00
Nathan Sobo
04b3eef768
Fix theme-manager-specs
2014-10-15 15:14:13 -06:00
Nathan Sobo
506753a535
Subscribe to <atom-styles> element to shim events in ThemeManager
...
This is better than subscribing to atom.styles because the events it
emits contain the *actual* style elements we insert into the DOM.
2014-10-15 15:14:13 -06:00
Nathan Sobo
65e077abd1
Use StyleManager and StylesElement to manage all stylesheet elements
...
For now, loading remains in the theme manager, but all application of
stylesheets is routed through atom.styles.
2014-10-15 15:14:13 -06:00
Nathan Sobo
1eb3d8bf99
Use ‘atom-text-editor’ custom tag name for TextEditorElement
2014-10-09 07:39:14 -07:00
Nathan Sobo
8f9f422406
📝 Update return value docs
2014-09-30 14:03:03 -06:00
Nathan Sobo
211a1c75e2
Return a disposable from ThemeManager::requireStylesheet
2014-09-30 14:02:04 -06:00
Ben Ogle
37ddf096a7
Reorganize ThemeManager into sections
2014-09-17 15:39:16 -07:00
Kevin Sawicki
dc5eb95a39
Wait for initial stylesheet load to complete
...
Instead of measuring on each stylesheet load at startup,
wait for the initial load of all the stylesheets to complete
and then do the necessary measurments.
2014-09-11 15:32:02 -07:00
Kevin Sawicki
844fd29dad
Remove unused param
2014-09-11 15:32:02 -07:00
Ben Ogle
025c6111b3
Move global editor stylesheet updating into the ThemeManager
2014-09-10 18:01:45 -07:00
Ben Ogle
667315aff5
Add ThemeManager::onDidUpdateStylesheet
2014-09-10 18:01:27 -07:00
Ben Ogle
f8b17b6b3c
Add Returns line to all the event subscription methods
2014-09-10 17:07:21 -07:00
Ben Ogle
2e219f288d
Add sections for docs clarity
2014-09-09 15:55:47 -07:00
Ben Ogle
09fbd46869
Remove event docs
2014-09-09 15:43:35 -07:00
Ben Ogle
10ceb34426
Fix docs
2014-09-09 15:43:12 -07:00
Ben Ogle
5ba5215f5d
Add event subscription methods to ThemeManager
2014-09-09 15:35:00 -07:00
Ben Ogle
3bf348e51f
Add ThemeManager::onDidReloadAll
2014-09-09 15:24:55 -07:00
Kevin Sawicki
ab75f3122f
💄 Use proper Less
2014-09-08 09:45:24 -07:00
Kevin Sawicki
359491fc3f
Remove nulled variable
2014-09-08 09:40:06 -07:00
Kevin Sawicki
444eb0e5e5
💄 e -> error
2014-09-08 09:37:39 -07:00
Kevin Sawicki
522d446366
📝 Emit -> Emitted
2014-09-08 09:35:05 -07:00
Kevin Sawicki
f8949adf38
💄 Sort requires
2014-09-08 09:34:31 -07:00
Kevin Sawicki
01d62653f2
Remove unused require
2014-09-08 09:33:51 -07:00