Merge pull request #1020 from atom/cj-add-flash-error

Add visual cues for errors and beeps
This commit is contained in:
Corey Johnson 2013-10-23 14:30:41 -07:00
commit 265e4ff43c
4 changed files with 14 additions and 1 deletions

View File

@ -107,6 +107,7 @@
"to-the-hubs": "0.8.0",
"toml": "0.3.0",
"tree-view": "0.20.0",
"visual-bell": "0.3.0",
"whitespace": "0.7.0",
"wrap-guide": "0.4.0",

View File

@ -303,7 +303,8 @@ class Atom
process.crash()
beep: ->
shell.beep()
shell.beep() if @config.get('core.audioBeep')
@rootView.trigger 'beep'
requireUserInitScript: ->
userInitScriptPath = path.join(@config.configDirPath, "user.coffee")

View File

@ -50,6 +50,7 @@ class RootView extends View
disabledPackages: []
themes: ['atom-dark-ui', 'atom-dark-syntax']
projectHome: path.join(atom.getHomeDirPath(), 'github')
audioBeep: true
@acceptsDocuments: true

View File

@ -60,3 +60,13 @@ div > .inline-block-tight:last-child {
margin-left: 0;
}
}
.error {
-webkit-animation: flash-error 0.3s ease-in;
}
@-webkit-keyframes flash-error {
0% { background: @background-color-error; }
100% { background: auto; }
}