Antonio Scandurra
b25d3e944b
Parameterize configDirPath and move config.load in ctor
2015-10-14 12:41:36 +02:00
Max Brunsfeld
778023c78b
Make factory for StylesElements on atom.styles
2015-10-09 13:46:32 -07:00
Nathan Sobo
c4bbd2bbf2
Build StyleManager in Atom environment constructor
2015-10-07 15:24:51 -05:00
Kevin Sawicki
590a4b0fd5
Add explicit return after for loop
2015-03-19 11:48:40 -07:00
Nathan Sobo
7dd67caf57
Remove ‘group’ parameter to addStyleSheet in favor of ‘priority’
2015-01-07 09:51:42 -07:00
Nathan Sobo
2c1f8ce733
Set the style element priority based on the group
...
This ensures that elements are always in the desired order regardless
of the order the groups are added.
2015-01-06 19:41:57 -07:00
Nathan Sobo
94e12ee886
Handle priority in when inserting style elements in style manager
2015-01-06 19:33:14 -07:00
Nathan Sobo
4c74b07b22
Order style elements by priority
2015-01-06 19:14:54 -07: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
27331cb379
Publicize and document StyleManager
2014-11-18 10:50:55 -07:00
Nathan Sobo
4e8e5a84c4
Support context attribute in <atom-styles>
2014-11-04 16:37:20 -07:00
Nathan Sobo
314c525d2d
Assign properties in addition to attributes for convenience
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
79598aaae9
Add StyleElement
...
This will be used to handle stylesheet rendering when we move management
of loading stylesheets to the StyleManager instead of the theme manager.
This sets us up for being able to render specific stylesheets in shadow
roots in addition to just having global stylesheets.
2014-10-15 15:14:13 -06:00
Nathan Sobo
62a43c6fb9
Revise StyleManager API
2014-10-15 15:14:12 -06:00
Nathan Sobo
1fe1147901
Add group parameter to StyleManager::addStyleSheet
...
This can be used to sequence style elements at the correct location in
the cascade even if they are loaded later than elements in a subsequent
group.
2014-10-15 15:14:12 -06:00
Nathan Sobo
1c97dcd195
Add sourcePath parameter to StyleManager::addStyleSheet
2014-10-15 15:14:12 -06:00
Nathan Sobo
d3371dbcd2
Start on StyleManager
...
This will take over raw stylesheet management from the theme manager
now that it’s becoming more complex with the need to target specific
host elements. Instead of actually adding nodes to the head of the
document, it will instead simply manage a set of stylesheets we want to
apply and leave actual DOM manipulation to <atom-styles> custom elements
that can render the set of active stylesheets in the appropriate
locations.
2014-10-15 15:14:12 -06:00