diff options
author | 2020-10-15 03:29:53 +0530 | |
---|---|---|
committer | 2020-10-14 22:59:53 +0100 | |
commit | d97c00f962757210d7ef617c40d4c4e3da37efb1 (patch) | |
tree | af1941d7abc1b59427bb40d31770437d67a7bc59 /src/containers | |
parent | Add vertical style and "Always show workspace drawer" setting (#567) (diff) | |
download | ferdium-app-d97c00f962757210d7ef617c40d4c4e3da37efb1.tar.gz ferdium-app-d97c00f962757210d7ef617c40d4c4e3da37efb1.tar.zst ferdium-app-d97c00f962757210d7ef617c40d4c4e3da37efb1.zip |
Flash TaskBar (Windows) / Bounce Dock (Mac) on New Message (#1020)
- Add a new Toggle Field for Win32 and MacOS for NotifyTaskBarOnMessage in EditSettingsForm.js
- Add notifyTaskbarOnMessage under messages Array in EditSettingsScreen.js
- Update appIndicator.js to flash Windows TaskBar or Bounce the Dock on MacOS when a new message arrives
- Update en-US.json to include settings.app.form.notifyTaskBarOnMessage string
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 7078546f9..d87b2512e 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -59,6 +59,10 @@ const messages = defineMessages({ | |||
59 | id: 'settings.app.form.privateNotifications', | 59 | id: 'settings.app.form.privateNotifications', |
60 | defaultMessage: '!!!Don\'t show message content in notifications', | 60 | defaultMessage: '!!!Don\'t show message content in notifications', |
61 | }, | 61 | }, |
62 | notifyTaskBarOnMessage: { | ||
63 | id: 'settings.app.form.notifyTaskBarOnMessage', | ||
64 | defaultMessage: '!!!Notify TaskBar/Dock on new message', | ||
65 | }, | ||
62 | navigationBarBehaviour: { | 66 | navigationBarBehaviour: { |
63 | id: 'settings.app.form.navigationBarBehaviour', | 67 | id: 'settings.app.form.navigationBarBehaviour', |
64 | defaultMessage: '!!!Navigation bar behaviour', | 68 | defaultMessage: '!!!Navigation bar behaviour', |
@@ -230,6 +234,7 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
230 | startMinimized: settingsData.startMinimized, | 234 | startMinimized: settingsData.startMinimized, |
231 | minimizeToSystemTray: settingsData.minimizeToSystemTray, | 235 | minimizeToSystemTray: settingsData.minimizeToSystemTray, |
232 | privateNotifications: settingsData.privateNotifications, | 236 | privateNotifications: settingsData.privateNotifications, |
237 | notifyTaskBarOnMessage: settingsData.notifyTaskBarOnMessage, | ||
233 | navigationBarBehaviour: settingsData.navigationBarBehaviour, | 238 | navigationBarBehaviour: settingsData.navigationBarBehaviour, |
234 | sentry: settingsData.sentry, | 239 | sentry: settingsData.sentry, |
235 | hibernate: settingsData.hibernate, | 240 | hibernate: settingsData.hibernate, |
@@ -374,6 +379,11 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
374 | value: settings.all.app.privateNotifications, | 379 | value: settings.all.app.privateNotifications, |
375 | default: DEFAULT_APP_SETTINGS.privateNotifications, | 380 | default: DEFAULT_APP_SETTINGS.privateNotifications, |
376 | }, | 381 | }, |
382 | notifyTaskBarOnMessage: { | ||
383 | label: intl.formatMessage(messages.notifyTaskBarOnMessage), | ||
384 | value: settings.all.app.notifyTaskBarOnMessage, | ||
385 | default: DEFAULT_APP_SETTINGS.notifyTaskBarOnMessage, | ||
386 | }, | ||
377 | navigationBarBehaviour: { | 387 | navigationBarBehaviour: { |
378 | label: intl.formatMessage(messages.navigationBarBehaviour), | 388 | label: intl.formatMessage(messages.navigationBarBehaviour), |
379 | value: settings.all.app.navigationBarBehaviour, | 389 | value: settings.all.app.navigationBarBehaviour, |