Skip to content

Electron Tray Improvements#3909

Merged
dbkr merged 8 commits intodevelopfrom
t3chguy/favicon_improvements
May 19, 2017
Merged

Electron Tray Improvements#3909
dbkr merged 8 commits intodevelopfrom
t3chguy/favicon_improvements

Conversation

@t3chguy
Copy link
Copy Markdown
Member

@t3chguy t3chguy commented May 13, 2017

supersedes #3835
thus for #3554

  • make Electron Tray icon mimic the Favicon (has notifications count badge)

  • make Electron Tray Tooltip mimic document.title (has info like [offline])

  • add electron_app to .gitignore, missed it when renaming

  • tidy up tray.js

  • move Favico.js stuff into VectorBasePlatform as now Electron uses it too, no point doing the generation in the other process as that just means the electron package will have two copies of the library.

Screenshots below shows favicon still working on WebPlatform, and the tray icon behaviour too:
screenshot 22
screenshot_20170513_132630

t3chguy added 5 commits May 13, 2017 12:37
DRY: moved Favicon stuff into the base platform

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@ara4n
Copy link
Copy Markdown
Member

ara4n commented May 16, 2017

someone was just asking for this in HQ... @dbkr, feel free to reassign this if you don't have PR review bandwidth

@mateusz-marek-wisniewski
Copy link
Copy Markdown

mateusz-marek-wisniewski commented May 16, 2017

Hey @t3chguy can you make the notification count badge showing also in Windows taskbar icon like this?:

przechwytywanie

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy
Copy link
Copy Markdown
Member Author

t3chguy commented May 17, 2017

@SiwyPL spróbuję
(I'll try it)

t3chguy added 2 commits May 17, 2017 10:05
LETS MAKE IT CLEAR WE ARE NEEDY AND WANT ATTENTION

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
also improve favicon updating to not change if we're same as previous
not sure how intensive the nativeImage stuff is but cheap efficiency

For FLASH FLASH I moved the setBadgeCount stuff RPC -> IPC
should be more reliable now, its in electron-main
Win only:
if mainWindow is set and is not in focus make it FLASH
clear flash if notification gets cleared elsewhere
debounce focus handler so we don't set a million of them
if the app is backgrounded a while

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy
Copy link
Copy Markdown
Member Author

t3chguy commented May 17, 2017

@SiwyPL now it'll both flash and show you number of notifications, you wanted it to be obvious right :P?
(only flash until you focus the window again)
screenshot 41

@mateusz-marek-wisniewski
Copy link
Copy Markdown

oh maaan thanks, that was quick

Copy link
Copy Markdown
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks super awesome, thanks! Sorry for not getting to review this sooner.

@dbkr dbkr merged commit a9b5282 into develop May 19, 2017
@t3chguy
Copy link
Copy Markdown
Member Author

t3chguy commented May 19, 2017

No worries @dbkr - clear how busy you've been recently :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants