fix(notifications): Add a purple tint color for developer notification

This commit is contained in:
Ben Gotow 2015-10-04 00:22:59 -07:00
parent f4b078ee54
commit ce5c54c333
3 changed files with 5 additions and 2 deletions

View file

@ -12,7 +12,7 @@ class Notification
# Check to make sure the provided data is a valid notificaiton, since
# notifications may be constructed by anyone developing on N1
throw new Error "No `new` keyword when constructing Notification" unless @ instanceof Notification
throw new Error "Type must be `info`,`error`, or `success`" unless @type in ['info', 'error', 'success']
throw new Error "Type must be `info`, `developer`, `error`, or `success`" unless @type in ['info', 'error', 'success', 'developer']
throw new Error "Message must be provided for notification" unless @message
if @actions
for action in @actions

View file

@ -133,6 +133,9 @@
.notification-info {
background-color: @background-color-info;
}
.notification-developer {
background-color: #615396;
}
.notification-error {
background-color: @background-color-error;
border-color: @background-color-error;

View file

@ -219,7 +219,7 @@ class WindowEventHandler
Actions = require './flux/actions'
Actions.postNotification
icon: 'fa-flask'
type: 'info'
type: 'developer'
sticky: true
actions: [{label: 'Thanks', id: 'ok'}]
message: "N1 is running with debug flags enabled (slower). Packages in