mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-03 13:59:12 +08:00
fix(notifications): Add a purple tint color for developer notification
This commit is contained in:
parent
f4b078ee54
commit
ce5c54c333
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue