Kevin Sawicki
b9d30176d8
Remove unused method
2015-11-03 14:31:52 -08:00
Kevin Sawicki
2e6b8a3e96
Guard against loadSettings error
2015-11-03 14:31:35 -08:00
Dave Rael
f92188fc27
Remove unused inclusion of fs
2015-11-03 14:10:55 -08:00
Dave Rael
5d5d83d474
Remove duplication of locating Atom Home
2015-11-03 14:10:37 -08:00
Kevin Sawicki
de7cf162f9
Merge pull request #8442 from atom/portable-mode
...
Enable Portable Mode
2015-11-03 12:49:54 -08:00
Antonio Scandurra
6290822067
Export a function in windowInitializationScript
...
...so that we can pass BlobStore to AtomEnvironment
2015-11-03 09:51:08 +01:00
Antonio Scandurra
e1087acf9e
Save BlobStore only when unloading editor window
2015-11-02 19:49:14 +01:00
Antonio Scandurra
a8b5bb243f
Save BlobStore only in the first window
2015-11-02 10:53:04 +01:00
Antonio Scandurra
27a6f36738
Remove references to cache
2015-10-30 18:49:06 +01:00
Antonio Scandurra
abcfc8579b
Rename to FileSystemBlobStore
2015-10-30 18:42:38 +01:00
Antonio Scandurra
72639e5393
🎨 Satisfy linter requirements
2015-10-30 11:36:58 +01:00
Antonio Scandurra
71b6871d3b
🐎 Make IO faster for v8 compile cache
2015-10-30 10:14:14 +01:00
Antonio Scandurra
c684273ecf
Introduce NativeCompileCache
2015-10-30 10:14:14 +01:00
Ivan Žužak
683949b75d
Increase timeout for starting a profile after opening devtools
2015-10-21 12:06:32 +02:00
Dave Rael
e0697ecc7f
Merge branch 'master' into portable-mode
...
Conflicts:
src/atom-environment.coffee
2015-10-20 20:58:14 -06:00
Dave Rael
82f5e81cec
Restore check on ATOM_HOME
...
(undo db57479bf9
)
Check on ATOM_HOME is not superfluous - needed on Linux because of
difference in inheriting environment variables between browser and render
processes
2015-10-16 04:24:57 -06:00
Antonio Scandurra
82fbec0879
🐛 Give priority to initial window background
...
Otherwise, since we now add styles element right during AtomEnvironment
construction, the default background gets showed (i.e. white on my machine).
/cc: @nathansobo
2015-10-15 11:05:16 +02:00
Dave Rael
db57479bf9
Remove superfluous check on ATOM_HOME
...
always set at the process level, so always set here
2015-10-09 11:21:41 -06:00
Nathan Sobo
e886d8b253
Rename “bootstrap” scripts
...
They’re just window initialization scripts, and this new naming makes
that a lot clearer.
2015-10-07 15:24:50 -05:00
Nathan Sobo
3fc9ab8ffa
Remove unused function
2015-09-22 10:37:09 -06:00
Nathan Sobo
68fe7026a8
Disable deprecated APIs in specs
2015-09-22 10:37:07 -06:00
Nathan Sobo
b3e97cd5c6
Drop special stylesheet handling for atom-space-pen-views
2015-09-18 20:48:52 -06:00
Nathan Sobo
46a833a608
Revert "Merge pull request #8778 from atom/mq-system-font"
...
This reverts commit 457e80113e
, reversing
changes made to de61aecfd1
.
2015-09-16 14:37:25 -06:00
Machisté N. Quintana
457e80113e
Merge pull request #8778 from atom/mq-system-font
...
Use system menu font for Atom UI
2015-09-16 10:08:28 -04:00
Antonio Scandurra
c7d4871453
Merge pull request #8730 from atom/as-faster-style-recalculation
...
Faster Style Recalculations
2015-09-15 11:25:10 +02:00
Machiste Quintana
028fbbfd35
Simplify CSS guard
2015-09-14 13:18:57 -04:00
Machiste Quintana
d8437c2213
Allow and guard against undefined font-family
2015-09-13 17:06:09 -04:00
Machiste Quintana
4fe1c2db01
Use menu font on root element too
2015-09-13 16:48:13 -04:00
Machiste Quintana
6949c80665
Use system font for menus in atom-workspace
2015-09-13 16:47:11 -04:00
Lee Dohm
0c623401d6
Add imports to prevent build failure
2015-09-12 03:48:04 -07:00
Lee Dohm
ad952814ac
Fix bad import name
2015-09-11 21:55:27 -07:00
Lee Dohm
0e1cca6a4d
Update import file for new cursor file name
2015-09-11 21:55:27 -07:00
Lee Dohm
fd4e0e6e69
Change name of white cursor mixin
2015-09-11 21:55:27 -07:00
simurai
0ab52b654e
Use white-cursor on dark editors
2015-09-11 21:55:27 -07:00
simurai
2585e691e0
Don't output the white-cursor mixin
2015-09-11 21:55:27 -07:00
Lee Dohm
ad0ea13942
Add white-cursor Less mixin for use in dark syntax themes
...
Applies to #1654
2015-09-11 21:55:27 -07:00
Antonio Scandurra
493df95294
Merge branch 'master' into as-faster-style-recalculation
2015-09-09 20:53:58 +02:00
Antonio Scandurra
6b4e769a90
Position line numbers relatively
2015-09-09 17:58:39 +02:00
simurai
e1e2177058
Use San Francisco font on El Capitan Beta
...
`SF UI Text` only works for the downloaded version of the San Francisco font.
`.SFNSText-Regular` adds support for the bundled version that ships in El Capitan Beta
2015-09-01 14:26:05 +09:00
Max Brunsfeld
a4b9b9c6cd
👕 Use standard style for js code
2015-08-21 16:56:32 -07:00
Max Brunsfeld
b533aff8f4
🐎 Minimize dependencies loaded before the module-cache
2015-08-21 13:48:56 -07:00
Max Brunsfeld
2285e8a42c
Move babel config to a separate file in static directory
2015-08-19 17:55:29 -07:00
Max Brunsfeld
49e37f5410
Use source-map-support to handle stack trace conversion
...
Previously, our Error.convertStackTrace function was provided by coffeestack,
which only works for coffee-script. This adds a dependency on 'source-map-support',
which works for any source file with inline source maps.
This also refactors the code for registering our compilers (coffee-script,
typescript, and babel) so that caching logic is shared.
2015-08-19 17:55:29 -07:00
simurai
9fb97b093f
Add text color to atom-workspace
...
So text is readable on top of @app-background-color
2015-08-01 16:51:36 +09:00
simurai
5236b72103
Enable subpixel AA for tabs, status-bar etc.
...
Problem: The GPU layer added to the .gutter .tiles cause the surounding UI to also composite layers, like the tas or the status-bar. This disables subpixel anti-aliasing and text doesn't look that sharp.
Eventough the `.gutter` has `overflow: hidden`, it seems Chrome still thinks there is a chance of overlapping and thus creates the extra layers.
Solution: Creating an own stacking context for the `.gutter` seems to fix it.
Issue #7904
2015-07-18 20:05:28 +09:00
Machisté N. Quintana
3ac69500b0
Add SF UI font
2015-06-30 08:24:04 -04:00
Kevin Sawicki
993d702ce9
Include deprecated APIs when running core specs
2015-06-24 16:51:48 -04:00
Kevin Sawicki
85a4ae7fea
Remove --include-deprecated-apis command line option
2015-06-24 16:51:48 -04:00
Kevin Sawicki
bde74dee0b
Merge pull request #7281 from atom/sm-default-editor-font
...
New default editor font
2015-06-19 09:12:18 -07:00
Machiste Quintana
1bd94c670f
Fix copypasta selector
2015-06-16 20:23:41 -04:00
Machiste Quintana
fe4654c9ea
🐛 Fix pane resize cursors on Windows
2015-06-16 20:18:16 -04:00
simurai
e4ba689e40
Replaces default editor font
...
Only affects OS X
2015-06-15 16:03:50 +09:00
Roy Martin
384b88eecf
Fix inconsistency with pane resize cursors.
2015-06-09 01:06:45 -07:00
Antonio Scandurra
d294f35849
Get rid of .underlayer
...
/cc: @nathansobo
2015-06-05 16:26:33 +02:00
Kevin Sawicki
37939f6c76
Log deprecated-packages require error
2015-06-03 16:12:48 -07:00
Kevin Sawicki
c9eb9d71cc
Setup deprecated packages in dev mode
2015-06-03 16:11:16 -07:00
Kevin Sawicki
bf37a66831
Rename --one to --include-deprecated-apis
2015-06-02 16:36:20 -07:00
My-khael Pierce
a1b4f89ddd
remove unnecessary line break
2015-06-02 16:36:14 -04:00
Ben Ogle
49c8a10c08
Fix text lint error
2015-05-29 13:22:03 -07:00
Ben Ogle
fad99c69e6
Fix build issue: import ui vars.
2015-05-29 10:38:37 -07:00
Ben Ogle
98dc2f9d7f
Style links and code blocks in text-* classes
2015-05-28 16:09:15 -07:00
simurai
08c4e8e007
Unstyle <kbd>
...
that got intruduced in latest Boostrap upgrade.
Fixes #6923
2015-05-24 16:37:36 +09:00
Machiste Quintana
54ca895777
Use configured font settings in tooltips
2015-05-18 19:30:05 -04:00
Kevin Sawicki
c4d7df9e99
Prevent global variables from leaking out of index.js
2015-05-14 09:54:35 -07:00
Kevin Sawicki
9f2faa086b
Add back raw load settings logging
2015-05-13 10:11:46 -07:00
Kevin Sawicki
f2c50bfd9e
Remove unneeded loadSettings validation
2015-05-13 10:00:54 -07:00
Kevin Sawicki
f989981d19
Extract getCacheDirectory helper
2015-05-13 09:50:11 -07:00
Kevin Sawicki
fff546a1e5
Don't set background of spec windows
2015-05-13 09:47:10 -07:00
Kevin Sawicki
a0abd9ebe4
🎨
2015-05-13 09:37:13 -07:00
Kevin Sawicki
ded2438700
Add ; to inline style
2015-05-13 09:37:13 -07:00
Kevin Sawicki
943df49300
Read/write window background in local storage
2015-05-13 09:37:13 -07:00
Kevin Sawicki
87db62a70b
Remove empty title element
2015-05-13 09:37:12 -07:00
Kevin Sawicki
f5078a16e3
Remove default background style
2015-05-13 09:37:12 -07:00
simurai
d97f67095e
Add better fallback font
...
See comment https://github.com/atom/atom/pull/6567#commitcomment-10960397
2015-04-29 20:02:54 +09:00
simurai
52f06a619e
Add DejaVu Sans Mono to font stack
...
Should fix font issues on Linux #4201
2015-04-29 16:59:24 +09:00
Kevin Sawicki
df2b0664a1
Catch errors setting load time
2015-04-28 17:43:16 -07:00
Kevin Sawicki
0d9d9e1056
Track load time when profiling startup
2015-04-28 17:42:46 -07:00
Kevin Sawicki
313c8a73ce
Only pen dev tools when not already open
2015-04-28 09:04:52 -07:00
Kevin Sawicki
b5839a8960
Add created to profile message
2015-04-28 09:04:52 -07:00
Kevin Sawicki
3cc99d5662
Handle profile startup option on load
2015-04-28 09:04:52 -07:00
Michael Bolin
d2cd05ebdc
Add a handler for an unhandledRejection
.
2015-04-23 11:59:17 -07:00
Ben Ogle
c795879e0c
Update colors in syntax fallback vars
2015-04-21 11:43:54 -07:00
Ben Ogle
4fb59af3cc
Add fallback syntax var for attributes
2015-04-20 18:34:05 -07:00
liuxiong332
e46d3b0d27
Merge remote-tracking branch 'origin' into pane-resize
...
Conflicts:
src/pane-element.coffee
src/pane.coffee
2015-04-15 10:09:41 +08:00
Kevin Sawicki
7d592c8b78
includeDeprecations -> includeDeprecatedAPIs
2015-04-03 11:29:16 -07:00
Kevin Sawicki
5a7d746eae
Conditionally include deprecations in Atom
2015-04-03 11:27:59 -07:00
Ben Ogle
2338f8e65b
Make atom-pane overflow: visible
...
This allows children of the pane-item to make the decision to overflow or not.
2015-04-01 17:40:59 -07:00
Ben Ogle
9171089466
Add default syntax color vars
...
Will be used by syntax themes, and autocomplete
2015-03-30 13:50:08 -07:00
simurai
4980ce30a9
Absolute position pane resize-handle
...
- Keeps most themes unaffected
- More consistent with the tree-view resizer
2015-03-17 16:02:02 +09:00
liuxiong332
f8f42265da
delete PaneResizeHandleView that use jQuery and View and replaced with PaneResizeHandleElement
2015-03-10 17:02:34 +08:00
liuxiong332
651139e189
add pane-resize-handle-view and insert resize view into pane axis element
2015-03-09 13:16:30 +08:00
basarat
722089be45
feat(typescript) initial commit of built in typescript support
2015-03-08 15:35:27 +11:00
Max Brunsfeld
9bb4968e6f
Store load settings in URL fragment, not query string
2015-03-04 16:03:00 -08:00
simurai
2dcdbb5a92
Only set a font-size in the root
...
No need to select `html` and `body` when trying to override it.
Issue: #5735
2015-02-26 12:07:51 +09:00
Kevin Sawicki
caff9e0866
Merge pull request #5579 from sebmck/babel
...
Rename 6to5 to Babel
2015-02-20 15:04:26 -08:00
Kevin Sawicki
a14f1ab0b3
Merge pull request #5573 from postcasio/fix-pseudo-elements
...
Use double colons for "before" and "after" pseudo-elements
2015-02-17 17:58:32 -08:00
Sebastian McKenzie
52506a0df2
Rename 6to5 to Babel
2015-02-18 12:23:58 +11:00
Kevin Sawicki
983027b27f
🐎 inline vm compatibility patch
2015-02-17 16:50:03 -08:00
postcasio
5489d7d351
Use double colons for "before" and "after" pseudo-elements
2015-02-16 16:34:31 +00:00
Kevin Sawicki
718886a077
Pass in full path to root cache dir
2015-02-12 14:22:46 -08:00
Kevin Sawicki
445eee42db
🎨
2015-02-12 14:22:45 -08:00
Kevin Sawicki
fcced492d4
Break out helper methods in index.js
2015-02-12 14:22:45 -08:00
Kevin Sawicki
efd8f160da
Add helper to warm caches on apm install
2015-02-12 14:22:45 -08:00
Kevin Sawicki
68926d1319
🎨 Comment each cache setup
2015-02-12 14:22:45 -08:00
Kevin Sawicki
d6212cfc79
Start caching source maps
2015-02-12 14:22:45 -08:00
Kevin Sawicki
0738d456b5
Use coffee-cash module
2015-02-12 14:22:44 -08:00
Kevin Sawicki
e606b5fc73
Merge pull request #5316 from atom/sm-badge
...
Badge component
2015-02-10 09:33:53 -08:00
Kevin Sawicki
77741b6f3f
Set ATOM_HOME as early as possible in render process
...
Moves it from window-bootstrap.coffee to index.js so it runs before
the coffee cache is registered.
Refs #5412
2015-02-05 12:18:51 -08:00
simurai
efe2b5dcfc
🎨 Rename flexible size class
2015-01-31 11:05:00 +09:00
simurai
dc7bcfa8f2
🎨 Remove unused styles
2015-01-30 21:37:58 +09:00
simurai
ebad1eeb6a
Add badge component
...
It's now part of core
2015-01-30 19:53:54 +09:00
Michael Bolin
52f2c0ec69
rename esnext to 6to5
2015-01-29 17:29:02 -08:00
Michael Bolin
242fce3d79
Transpile all .js files with 6to5.
...
In the spirit of supporting JavaScript development for Atom packages,
this adds default support for es.next transpilation support in the way
that Atom already has default support for CoffeeScript transpilation.
There are many new features in ES6+ that make JavaScript development
easier and more enjoyable, particularly in terms of support for async code.
For reference, this was a much faster way to iterate on this than running `./script/build`
each time:
```
cp /Users/mbolin/src/atom/static/index.js /Applications/Atom.app/Contents/Resources/app/static/index.js
coffee --output /Applications/Atom.app/Contents/Resources/app/src --compile /Users/mbolin/src/atom/src/esnext.coffee
```
Run the following in the console to see how warm the cache was after startup:
```
global.require('../src/esnext/').getCacheHits()
global.require('../src/esnext/').getCacheMisses()
```
2015-01-29 11:56:32 -08:00
Kevin Sawicki
a9d215970f
Remove fs patches that are now fixed in Atom Shell
2015-01-21 10:39:08 -08:00
simurai
696c795b50
🐛 Fix overflow of mini editors
...
Issue #4400
2015-01-16 20:12:53 +09:00
simurai
c024abcc5f
🐛 Fix line-height of the indent-guide
...
Issue #4279
2015-01-15 20:14:57 +09:00
simurai
149cfdf0c2
✨ Let headers inherit the theme font-family
...
Issue https://github.com/atom/settings-view/issues/340
2015-01-14 10:37:06 +09:00
Kevin Sawicki
ae2ce9a1f9
Log raw load settings when parsing fails
2015-01-13 12:06:08 -08:00
Nathan Sobo
a406322748
Revert "Remove .pane-item selector from core"
...
This reverts commit ced66d920d
.
2015-01-07 16:12:22 -07:00
Nathan Sobo
ced66d920d
Remove .pane-item selector from core
...
It’s still in some themes, but we should be able to use a structural
selector to style anything in the pane so people don’t have to add
this class.
2015-01-07 10:25:32 -07:00
Kevin Sawicki
4142845632
⬆️ octicons@2.1.2
2014-12-23 11:43:37 -08:00
Machiste N. Quintana
d873f3d255
Add OS default fonts for Ubuntu (Unity) and Fedora (GNOME 3)
2014-12-12 14:01:57 -05:00
Kevin Sawicki
aa292874ec
Add reload button to specs window
2014-12-05 15:03:16 -08:00
Kevin Sawicki
0a84ad5307
Use .source.gfm as root selector
...
This matches the grammar's scope name and was an oversight from the
original CSS to Less conversion.
2014-12-01 17:23:37 -08:00
Ben Ogle
48f714d5fb
Fix deprecation link colors
2014-11-26 14:54:49 -08:00
Ben Ogle
aaee54bd08
Remove unnecessary error flash classes
2014-11-24 14:58:21 -08:00
Ben Ogle
61651db0b0
Render the deprecations as markdown
2014-11-20 11:41:53 -08:00
Kevin Sawicki
7b4a9aa2e4
Patch statSyncNoException to handle non-string args
...
Non-string values were being coerced to strings which can cause
unexpected results.
Refs atom/atom-shell#843
Closes #4247
2014-11-20 11:15:10 -08:00
Ben Ogle
1b85810735
Use classes rather than location attributes
2014-11-17 16:07:53 -08:00
Nathan Sobo
95ec0d8162
Replaces usages of .mini selector with [mini]
2014-11-13 16:04:57 -08:00
Nathan Sobo
0a4f5a365a
Add missing less imports to pass lesslint
2014-11-13 16:04:57 -08:00
Nathan Sobo
ed6ca9cd06
Remove .editor class to force themes to style background via :host
...
The goal is to allow the editor’s styling to be overridden as follows:
atom-text-editor {
background: black;
color: white;
}
If we retain these classes, themes will continue to style the root
element of the editor and destroy the ability to style the editor in
this way. You would instead have to do the following:
atom-text-editor::shadow .editor {
background: black;
color: white;
}
This is way less intuitive and confusing for people.
2014-11-13 16:04:57 -08:00
Nathan Sobo
263ff21cc1
Clean up shadow-DOM-specific text editor style sheet
2014-11-13 16:04:24 -08: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
Kevin Sawicki
edfcc134ec
Add missing close import
2014-11-13 08:42:10 -08:00
Ben Ogle
c79db992d9
Overlay decorations render
2014-11-11 11:25:36 -08:00
Ben Ogle
9553c46030
Override the default styling of .highlight in the editor.
...
Closes #4136
2014-11-10 14:34:50 -08:00
Jeremy Allard
a140787252
🐛 load the bootstrap style for thumbnails
2014-11-09 01:40:49 -05:00
Nathan Sobo
058ef0a5a8
Fix autocomplete specs
2014-11-07 14:43:02 -07:00
Ben Ogle
b4d38d14e3
Add padding to panel headings
2014-11-07 09:44:32 -08:00
Nathan Sobo
e0f8d6f365
Fix disappearing editor when folding all
...
Also: simplify the editor stylesheet a bit. Still some more to do but
fixing this issue is more important.
2014-11-06 12:36:14 -07:00
Nathan Sobo
670b44f250
Only set both height and width of editor when shadow DOM is used
...
These work inside a shadow root, but break the flexbox behavior when
the shadow DOM is disabled.
2014-11-05 11:21:29 -07:00
Nathan Sobo
2c83c3fe17
Merge pull request #3943 from atom/ns-text-editor-shadow-dom
...
Render text editor contents inside shadow DOM
2014-11-05 09:42:07 -07:00
Ben Ogle
743c50014f
Do not import overlay
2014-11-04 16:59:02 -08:00
Ben Ogle
af761fb004
All panel styling into panels.less
2014-11-04 15:39:25 -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
268fceb073
Specify border-box sizing for the cursor to fix specs
2014-11-04 16:37:22 -07:00
Nathan Sobo
65f40d6f7b
Move font styling to host element so font preferences work
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
Nathan Sobo
087387e633
Style mini editor font sizes on atom-text-editor host element
...
…instead of via the shadow DOM. We always honor the computed font
styles of the host element.
2014-11-04 16:37:20 -07:00
Nathan Sobo
769c6c52bb
Make atom-text-editor have “display: block”
2014-11-04 16:37:20 -07:00
Nathan Sobo
22212be90d
Give atom-text-editor elements a shadow root
...
Themes aren’t applying correctly and there are issues with mini editors
but this basically works. I’m leaving the .editor node in the shadow
DOM for theme compatibility and because React still wants to render
into a wrapper element.
2014-11-04 16:37:20 -07:00
Ben Ogle
3da11bf478
Update styles for modal panels.
2014-11-04 14:04:15 -08:00
Ben Ogle
022bc2e2a5
Only load the bootstrap styles we need!
2014-11-04 12:28:53 -08:00
Kevin Sawicki
b8285a00b0
Require path after setting start time
2014-10-30 10:49:08 -07:00
Kevin Sawicki
025967193a
Add path require to top
2014-10-30 10:48:51 -07:00
Kevin Sawicki
75627f50a2
Normalize process.resourcesPath on load
...
This ensures the drive letter is consistent on Windows for when
package paths are compared to the resources path to determine
whether to use the metadata cache for a bundled package.
Closes #3932
2014-10-30 10:31:37 -07:00
Kevin Sawicki
0c590d6170
Load CoffeeScript when using a custom resource path
...
Load CoffeeScript early whenever the resource path a subdirectory
from process.resourcesPath
Close #3993
2014-10-29 10:21:23 -07:00
Ben Ogle
b94485eafd
Set the heights of atom panels for location left and right.
2014-10-17 12:08:24 -07:00
Kevin Sawicki
6a6c7b1852
Calculate load time in index.js
...
Do it previously in window-bootstrap caused several things to not be
included such as requiring coffee script and atom shell modules.
Now it is a much more accurate representation of on load time.
2014-10-15 13:09:46 -07:00
Kevin Sawicki
289f17b119
Require coffee before module cache in dev mode
2014-10-15 13:09:46 -07:00
Kevin Sawicki
d745b9ef5f
Register module cache as early as possible
2014-10-15 13:09:45 -07:00
Kevin Sawicki
934c0720d8
Require ipc when needed
2014-10-15 13:09:44 -07:00
Kevin Sawicki
41598af2b2
Add pre-resolved path to require('atom')
2014-10-15 13:09:44 -07:00
Kevin Sawicki
171411823f
🐎 Resolve uncached core dependencies
...
Trust modules under the resource path to be there without stat-ing and
verifying.
2014-10-15 13:09:43 -07:00
Kevin Sawicki
8a0755340f
Remove extra )
2014-10-15 13:09:43 -07:00
Kevin Sawicki
bdebe575b7
💄 Use regular require paths
2014-10-15 13:09:43 -07:00
Kevin Sawicki
d877872c71
Use right require path
2014-10-15 13:09:42 -07:00
Kevin Sawicki
0a297d7642
Load module cache in index.js
2014-10-15 13:09:42 -07:00
Nathan Sobo
014e2e6fce
Make atom-workspace tag have ‘display: block’ style
2014-10-09 07:39:14 -07:00
Nathan Sobo
1eb3d8bf99
Use ‘atom-text-editor’ custom tag name for TextEditorElement
2014-10-09 07:39:14 -07:00
Nathan Sobo
8e06e88efa
Use ‘atom-workspace-axis’ custom tag name instead of ‘div’
2014-10-09 07:39:14 -07:00
Nathan Sobo
8941b97ed2
Use ‘atom-workspace’ custom tag name for WorkspaceElement
2014-10-09 07:39:14 -07:00
Nathan Sobo
eedf4894ae
Use ‘atom-pane-container’ custom tag name for PaneContainerElement
2014-10-09 07:39:14 -07:00
Nathan Sobo
ddf36a013c
Use ‘atom-pane-axis’ custom tag name for PaneAxisElement
2014-10-09 07:39:14 -07:00
Nathan Sobo
ee9284e228
Use ‘atom-pane’ custom tag name for PaneElement
2014-10-09 07:39:13 -07:00
Ben Ogle
b958286d22
Click to expand stack traces
2014-09-26 17:31:09 -07:00
postcasio
a615c3e081
Don't override antialiasing in markdown
2014-09-23 15:35:54 +01:00
Kevin Sawicki
ca9d05f6fa
Remove notification stylesheet
...
These were currently undocumented in the styleguide, had hard-coded colors,
weren't being styled by the default light/dark UI themes, and were unused.
They were also causing conflicts with the notification token scope that
the Objective-C grammar uses.
2014-09-18 09:26:46 -07:00
Nathan Sobo
0bae432109
Revert "Merge the react and non-react editor styles"
...
This reverts commit 01c4fe5340
.
2014-08-26 09:24:44 -06:00
Ben Ogle
01c4fe5340
Merge the react and non-react editor styles
2014-08-25 12:05:10 -07:00
Nathan Sobo
eabad3dcef
Use opacity to blink cursor instead of visibility so blink can be styled
2014-08-14 13:20:43 -06:00
Ben Ogle
bbeb4be5b1
Fix the status bar nested inline blocks.
...
They were 1 - 2px too low due to nesting inline-blocks.
2014-08-13 13:42:46 -07:00
Ben Ogle
25601d691d
Pull the mini editor styles out from react rule
2014-07-29 13:07:07 -07:00
Ben Ogle
23f21bcda2
Style the mini editors for a constant height
...
Adds an @input-font-size variable.
2014-07-29 12:31:34 -07:00
Ben Ogle
800d65e3de
Absolutify the placeholder text in mini editors.
...
Fixes #3118
2014-07-29 12:19:16 -07:00
Nathan Sobo
c1ec87c41b
Don't apply special styles React mini editors
2014-07-24 12:57:12 -07:00
Nathan Sobo
544c759fd1
Don't set an explicit line height on mini editors
...
This allows the line height to be styled via CSS. I would actually
like to allow all these properties to be assigned via CSS rather than
explicitly via the settings view, but that can be deferred until the
old editor is removed.
2014-07-21 10:43:31 -07:00
Nathan Sobo
e999ef00e7
Base editor dimensions on the wrapper view
...
The goal is to make the editor behave like a standard block-level
element.
The horizontal behavior is simple: we stretch horizontally to fill our
container.
The vertical behavior is more nuanced. If an explicit height is assigned
on the wrapper view, we honor that height. But if no explicit height is
assigned, the editor stretches vertically so that its contents are
visible.
This prepares us to support mini editors, which need to be 1-line tall
without an explicit height assignment.
2014-07-21 10:43:30 -07:00
Ben Ogle
c4204eb9e9
import the fallback variables in the base theme
2014-07-11 14:08:29 -07:00
Ben Ogle
cb0ee735be
Default cursor on scrollbars.
...
Fixes #2876
2014-07-09 08:46:48 -07:00
Ben Ogle
5c5576c39d
Use right margins for toolbar btn-groups rather than left.
...
Fixes #2830
2014-07-08 11:18:48 -07:00
Ben Ogle
1838ff2502
Use ‘flash’ class rather than ‘highlighted’.
...
Pull the flash into the base theme rather than the ui themes
2014-07-03 17:32:38 -07:00
Ben Ogle
168c6cdbca
Revert "Move the find-and-replace marker css into the base theme "
...
This reverts commit 942041f214
.
2014-07-03 14:22:58 -07:00
Ben Ogle
942041f214
Move the find-and-replace marker css into the base theme
2014-07-03 14:12:23 -07:00
Nathan Sobo
7c356d2592
Revert "Render highlights on their own layer to avoid GPU artifacts"
2014-06-21 01:58:11 -06:00
Nathan Sobo
df8d014e3c
Add a dedicated underlayer to avoid GPU artifacts on wrap guide etc
...
Trying to make the .highlights layer double as the .underlayer was
causing GPU artifacts on the wrap guide when the last highlight was
removed. This puts it in its own layer to avoid that.
2014-06-20 16:33:08 -06:00
Nathan Sobo
4218e0a037
Render highlights on their own layer to avoid GPU artifacts
...
Previously, when the last highlight div was removed from the lines
layer, chunks of the lines would sometimes disappear. Since we've
discovered that giving the lines an opaque background doesn't help with
subpixel anti-aliasing anyway, I've found that rendering highlights on
their own layer behind the lines and making the lines layer transparent
avoids the arficacts.
2014-06-20 15:18:19 -06:00
Ben Ogle
63587abe97
Give fold markers a pointer on hover
2014-06-18 14:21:03 -07:00
Ben Ogle
e89e2141d7
Merge pull request #2605 from atom/bo-ns-highlights
...
Add highlight decorations
2014-06-17 17:42:18 -07:00
Ben Ogle
3790cdb262
Reset highlights so they don’t interfere with styleguide text.highlight
2014-06-17 17:08:53 -07:00
Kevin Sawicki
de8b498402
Add deprecations to spec runner
2014-06-17 11:28:01 -07:00
Ben Ogle
a3784500ec
Fix editor-view tests
2014-06-17 11:13:15 -07:00
Ben Ogle
0312609e19
Make highlights render as absolute position
2014-06-16 15:57:23 -07:00
Corey Johnson
5e51445118
Update cursor z-index
2014-06-11 10:04:31 -07:00
Ben Ogle
d9e731c84a
Update styles on the foldable icons
2014-06-09 14:04:23 -07:00
Nathan Sobo
fe3ea229a2
Prevent focus loss on double click without breaking single click focus
...
Previously, we stopped propagation on mousedown events to prevent
certain cases where focus was being lost after double clicking to select
a word.
Unfortunately, this also broke the ability to focus the editor by
clicking it. When investigating this, I noticed that whenever we lost
focus, the target of the mousedown event was always the cursor. So I
tried setting `pointer-events: none` on cursors and can no longer
reproduce the double-click issue.
/cc @probablycorey
2014-06-07 12:37:40 +09:00
Nathan Sobo
66661f2d10
Make cursor visible when .editor-contents is focused
2014-06-06 23:58:39 +09:00
Nathan Sobo
cae5cdc81c
Put the .editor class on the wrapper, not the component
...
Things depend on the react editor wrapper having the .editor class,
but inside the editor, we can control the style. I changed the
component's div to be .editor-contents for now. We can eliminate this
extra style when we eliminate the wrapper.
2014-06-06 23:52:35 +09:00
Corey Johnson
56095187e6
Only show the first 10 lines of a spec failure and its stacktrace
...
It is difficult to scroll through stack traces when there are huge
failure messages. This limits the length to 10 lines, if you hover
over the message it will expand.
Somewhat related to #1173
2014-06-05 11:36:58 -07:00
Ben Ogle
d684911fce
Make cursor visible when over indent guides
2014-05-27 12:11:24 -07:00
Nathan Sobo
2ae7cba452
Don't blink cursors with CSS animation
...
It seems to create intermittent lags when moving the cursor and typing.
2014-05-20 14:04:59 -06:00
Nathan Sobo
b000e8e4a2
Get selection specs passing again
2014-05-16 15:31:16 -06:00
Nathan Sobo
54cec0a5ff
Hold the gutter's width with a dummy line number
2014-05-16 15:31:15 -06:00
Nathan Sobo
7dfe829fc8
Style lines with inline styles for performance
2014-05-16 15:31:15 -06:00
Nathan Sobo
d15fd34f7a
Render selections on lines layer; don't put each line number on GPU
2014-05-16 15:31:14 -06:00
Nathan Sobo
a118cdd32b
Put selections and lines on the GPU together in sibling divs
2014-05-16 15:31:14 -06:00
Nathan Sobo
070d239f41
Blink cursors with a CSS animation
...
Now that they're on their own layer, I don't think it affects the
repaint timing when typing on lines (if it ever did).
2014-05-16 15:31:13 -06:00
Nathan Sobo
f3efd7d60b
Position cursors relative to scrollLeft and fix specs
2014-05-16 15:31:12 -06:00
Nathan Sobo
191bc115cf
Use explicit descendant selector for styling lines
2014-05-16 15:31:12 -06:00
Nathan Sobo
a22480d857
Don't give lines a negative z-index
...
Removing the z-index makes them accessible via mouse in the inspector.
2014-05-16 15:31:12 -06:00
Nathan Sobo
a36163ce86
Manually set the gutter width to the width of a line number
...
We need to absolutely position line numbers to minimize repaints, but
the gutter needs to be wide enough to show them.
2014-05-16 15:31:11 -06:00
Nathan Sobo
e3d1a6aef8
Render each line number on its own layer
2014-05-16 15:31:11 -06:00
Nathan Sobo
bf9f8597a7
Give each line its own layer on the GPU
2014-05-16 15:31:11 -06:00
David Y. Ross
e3302b3f73
hide the cursor with cursor-hidden class rather than element.style
2014-05-15 19:20:32 -07:00
Nathan Sobo
ab1ede5fe6
Add a dummy scrollbar corner
...
Horizontal / vertical scrollbars render a 'corner' on the lower right
when they would otherwise overlap. I previously relied on drawing both
dummy scrollbars at their full width/height so the corner got rendered,
but that interfered with the display of the horizontal scrollbar in
certain circumstances because it was too wide to scroll. This commit
provides that behavior with an absolutely positioned div with the same
dimensions as the intersection of scrollbars when both are visible.
2014-05-09 11:33:04 -06:00
Nathan Sobo
dbd271f70a
Don't obscure last character of long lines with vertical scrollbar
...
This entailed quite a few changes to dial in scrollbars. The scrollbars
are now adjusted in size to account for the width of the opposite
scrollbar. If the width or height are not explicitly constrained and we
are scrollable in the opposite direction that is constrained, we account
for the width of the opposite scrollbar in assigning a natural height
or width based on the content.
2014-05-09 11:33:04 -06:00
Nathan Sobo
e6df30e94c
Respect horizontal scrollbar when rendering the vertical, and vice versa
...
We set overflow to hidden in the opposite scroll direction only if we
can't actually scroll in that direction, causing the white square where
neither scrollbar overlaps to appear at the lower right corner.
2014-05-09 11:33:03 -06:00
Nathan Sobo
c730e3c67e
Ensure selections span the entire screen, even when lines are short
...
Also, pass scrollHeight and scrollWidth as props to child components
instead of calling the method to compute them in multiple components.
2014-04-22 17:10:22 -06:00
Nathan Sobo
22496ceeb1
WIP: Minimize paint when scrolling and composite lines with the GPU
2014-04-22 17:10:22 -06:00
Nathan Sobo
d566726b9f
Use negative z-indices so attached views are visible in react editor
2014-04-22 17:10:21 -06:00
Nathan Sobo
8c266957f1
Isolate CSS changes to a single selector
2014-04-22 17:09:41 -06:00
David Graham & Nathan Sobo
48135a1e8d
Update the horizontal scrollbar when scrollLeft changes in the model
2014-04-22 17:09:38 -06:00
Nathan Sobo
1162af61ed
Render a basic gutter
2014-04-22 17:09:38 -06:00
Nathan Sobo
a931aaff53
Remove temporary cursor visibility styling
2014-04-22 17:09:38 -06:00
Nathan Sobo
3d3b72a954
Render selections
2014-04-22 17:09:04 -06:00
Nathan Sobo
70e5880b1d
Start on cursor rendering
2014-04-22 17:09:02 -06:00
Nathan Sobo
c2858fcae2
Use overflow: hidden for editor
2014-04-22 17:09:02 -06:00
Nathan Sobo
3c69fd2d49
Handle mouse wheel and make some tweaks to improve scroll performance
2014-04-22 17:09:02 -06:00
Nathan Sobo
a134a60ce8
Render the entire editor with React. Handle vertical scrolling.
...
The space-pen view is now a simple wrapper around the entire React
component to integrate it cleanly into our existing system. React
components can't adopt existing DOM nodes, otherwise I would just have
the react component take over the entire view instead of wrapping.
2014-04-22 17:09:02 -06:00
Nathan Sobo
5e8213d45f
Add atom.allowUnsafeEval loophole and disable unsafe-eval again
...
With Node.js baked in, there's no water-tight way to prevent users from
evaluating code at runtime, at least with CSP alone. This is because
node exposes a 'vm' module that allows scripts to be compiled. There's
also `module._compile`, etc.
I think a reasonable compromise is to protect users from eval'ing code
by accident. This commit adds an atom.allowUnsafeEval method which
re-enables eval in the dynamic scope of the given function.
I then use this to compile the keystroke grammar which saves us the
complexity of pre-compiling it during specs.
What do people think?
2014-03-05 09:57:08 -07:00
Patrick Toomey
fc543fc5a6
add unsafe-eval for now
2014-03-05 09:32:49 -06:00
Patrick Toomey
2e3aec81e7
initial attempt at CSP policy to see what breaks
2014-03-05 09:03:27 -06:00
Ben Ogle
705f77f5ba
Comments
2014-02-28 17:38:08 -08:00
Ben Ogle
c71cbf2e09
Add variables for wrap-guide and indent-guide
2014-02-28 17:38:08 -08:00
Ben Ogle
33aba7b721
Update syntax color variables
2014-02-28 17:38:08 -08:00
Nathan Sobo
28d7db2371
Set overflow to 'hidden' on panes. I'm pretty sure this fixes #1594 .
2014-02-26 18:19:07 -08:00
Kevin Sawicki
f9d70e5623
Make skipped specs yellowish
2014-02-11 16:19:46 -08:00
Kevin Sawicki
750e3565fd
Remove unused margin styles
2014-02-11 09:06:13 -08:00
Kevin Sawicki
4c60c40eb8
Nest list-unstyled rule
2014-02-11 09:06:13 -08:00