mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Merge pull request #1020 from atom/cj-add-flash-error
Add visual cues for errors and beeps
This commit is contained in:
commit
265e4ff43c
@ -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",
|
||||
|
||||
|
@ -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")
|
||||
|
@ -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
|
||||
|
||||
|
@ -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; }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user