-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New messages notification should show mainwindow and/or add an overlay Image #367
Comments
Looks similar to #213 Would love to see this added. |
so something like this works in windows:
|
Yes indeed, much better, I would like to add that in this case the I have included the code for 2.5.0, if I have enough time I will create a pull request on develop. |
In my testing, showInactive was needed. When using only minimize, the window would appear minimized and have focus. This meant the program would only stay orange in the taskbar for a few seconds before stopping. After adding in the showInactive, it would stay orange until i clicked on it. |
After yet more testing, i think i've found the best solution. With showInactive, you could get a brief view of the window appearing before being minimized. The blur() method will remove focus from the minimized window so that the "taskbar flash" won't go away.
|
Changes made here : https://github.com/fcoppolani/Rocket.Chat.Electron |
@fcoppolani Hey, please check the current changes made to the notification, if your code still improves it, please open a PR. Thank you. |
Hi @gdelavald, sorry for the delay, I tried out the last version. It looks good enough to me, I still believe an overlay image on the icone in the taskbar will still be an improvement (the best would be with a number of message, like on the tray icone). |
can you please test https://github.com/RocketChat/Rocket.Chat.Electron/releases/tag/2.12.1 ? |
I just tested 2.12.1 on Windows 10. After receiving a message and the toast times out, there is still no persistent visual to let you know someone messaged you while you were away from your desk. |
OK, we will work on that. |
OS: Windows 7 and Windows 10
Current app version : 2.3.0
Description
Hi,
During test phase in our company we add several issues with notifications. Part of them seems to be solved by #353 , but most users still miss some features.
Current Behavious :
If the app is still visible in the taskbar and a new message fireup, no visual effect indicate this information (part from flashing which doesn't work on 2.4.0).
If the app is in the tray, no information is visible in the taskbar, so it is mainly invisible.
Expected Behavior
One of them is to have a visual effect on the taskbar icon (not only tray).
The second one is to have the main window show up without focus.
To do that (I worked on 2.3.0 src code), I changed tray.js :
Taskbar visual effect :
Adding an image :
const _iconTBAlert = path.join(__dirname, 'images', icons[process.platform].dir, icons[process.platform].iconAlert || 'changes.png');
And in
showTrayAlert
adding an overlay :mainWindow.setOverlayIcon(_iconTBAlert, "new message");
and resetting it if
showAlert
is false :mainWindow.setOverlayIcon(null,"saved changes");
Show mainwindow :
in
showTrayAlert
addingmainWindow.showInactive();
For now I didn't fill up a pull request, since I would like to have your point of view and I cannot test my modifications on linux and OSX. Moreover the overlay image may not fit the global design of Rocket.Chat.
If validated I can add a pull request on the current branch, I would need a validated overlay image.
Regards,
The text was updated successfully, but these errors were encountered: