diff --git a/CHANGELOG.md b/CHANGELOG.md index 25eb5e68..5a23f3eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,10 +10,11 @@ - expose file browser (from the file widget) as a scripting function - custom module - - don't restrict file extension in `loadJSON()` and `saveJSON` functions + - don't restrict file extension in `loadJSON()` and `saveJSON` functions - misc - add polish locales (@ Manz4rk) + - add css classes to some notification popups to allow targetting them with css themes ## 1.22.0 diff --git a/src/client/ipc/callbacks.js b/src/client/ipc/callbacks.js index 4a9d2701..846bdfb5 100644 --- a/src/client/ipc/callbacks.js +++ b/src/client/ipc/callbacks.js @@ -63,6 +63,7 @@ module.exports = { notifications.add({ icon: 'wifi', + class: 'client-connected', message: locales('loading_newclient') }) diff --git a/src/client/ipc/index.js b/src/client/ipc/index.js index 6a4d1db2..2023622a 100644 --- a/src/client/ipc/index.js +++ b/src/client/ipc/index.js @@ -91,6 +91,7 @@ class Ipc extends EventEmitter { if (notifications && this.disconnected) notifications.add({ icon: 'wifi', + class: 'server-connected', message: locales('server_connected'), id: 'ipc_state' }) diff --git a/src/client/managers/state.js b/src/client/managers/state.js index 2a2efb7a..f6d32d78 100644 --- a/src/client/managers/state.js +++ b/src/client/managers/state.js @@ -150,6 +150,7 @@ var StateManager = class StateManager { this.set(state, send) notifications.add({ icon: 'sliders-h', + class: 'state-recall', message: locales('state_recallsuccess') }) } catch(e) { diff --git a/src/server/callbacks.js b/src/server/callbacks.js index 9308c45d..8f7ce467 100644 --- a/src/server/callbacks.js +++ b/src/server/callbacks.js @@ -251,6 +251,7 @@ module.exports = { ipc.send('notify', { icon: 'save', locale: 'remotesave_success', + class: 'session-save', message: ' ('+ path.basename(data.path) +')' }, clientId)