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
Kevin Sawicki
f7103bbed6
Store sheet before it goes away
2014-09-08 09:33:51 -07:00
Kevin Sawicki
7e6b7ada54
Preserve ordering within type class
2014-09-08 09:33:51 -07:00
Kevin Sawicki
5e2f8a3ae3
🐎 Use DOM APIs to apply stylesheets
...
Previously jQuery was used, but using the DOM APIs directly
takes 1/3 of the time.
2014-09-08 09:33:51 -07:00
Ben Ogle
66e6a481a4
📝 Convert ThemeManager docs
2014-08-25 15:13:45 -07:00
Ben Ogle
26d696a93d
Add classes to the workspace for themes
...
Fixes #3097
2014-08-21 11:53:10 -07:00
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