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 4539cf2e24
commit fe06835540
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 # Check to make sure the provided data is a valid notificaiton, since
# notifications may be constructed by anyone developing on N1 # notifications may be constructed by anyone developing on N1
throw new Error "No `new` keyword when constructing Notification" unless @ instanceof Notification 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 throw new Error "Message must be provided for notification" unless @message
if @actions if @actions
for action in @actions for action in @actions

View file

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

View file

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