From ce5c54c33314bc357776ae7c44457fa3f8afa1dc Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Sun, 4 Oct 2015 00:22:59 -0700 Subject: [PATCH] fix(notifications): Add a purple tint color for developer notification --- internal_packages/notifications/lib/notifications-store.coffee | 2 +- internal_packages/notifications/stylesheets/notifications.less | 3 +++ src/window-event-handler.coffee | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/internal_packages/notifications/lib/notifications-store.coffee b/internal_packages/notifications/lib/notifications-store.coffee index d5f11d950..ff0c2f004 100644 --- a/internal_packages/notifications/lib/notifications-store.coffee +++ b/internal_packages/notifications/lib/notifications-store.coffee @@ -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 diff --git a/internal_packages/notifications/stylesheets/notifications.less b/internal_packages/notifications/stylesheets/notifications.less index 4979d5f2b..d499945a8 100644 --- a/internal_packages/notifications/stylesheets/notifications.less +++ b/internal_packages/notifications/stylesheets/notifications.less @@ -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; diff --git a/src/window-event-handler.coffee b/src/window-event-handler.coffee index 468a2f6c6..323ede4f2 100644 --- a/src/window-event-handler.coffee +++ b/src/window-event-handler.coffee @@ -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