Tangram icon indicating copy to clipboard operation
Tangram copied to clipboard

Highlight tab on activity

Open JayDoubleu opened this issue 4 years ago • 4 comments

Native gnome notification support is great but it would be awesome if tabs could highlight in some colour or bold text if there was an activity or notification until you visit it again. Similar to MS Teams or Slack when there is an activity on a tab.

JayDoubleu avatar Oct 14 '21 16:10 JayDoubleu

I'm trying to add this at the moment. I managed to get the tab to highlight when a notification is received, but I can't for the life of me find where I can hook into the activate tab to disable the highlight again.

If I could get a pointer by one of the devs it would be of great help...

ErnieBernie10 avatar Oct 23 '21 17:10 ErnieBernie10

That's probably what you are looking for

https://github.com/sonnyp/Tangram/blob/7bad084ef62288ccdea23b903b1519684023d253/src/Notebook.js#L69

sonnyp avatar Oct 25 '21 15:10 sonnyp

@ErnieBernie10 still interested in making this happen? Happy to help if you can submit a draft PR.

sonnyp avatar Nov 20 '21 12:11 sonnyp

I honestly got stuck. I tried to understand how the gtk stuff works but it's just very confusing to me as it's an architecture I'm not familiar with at all. I can submit what I have in a draft PR if you want me to. There's mostly a bunch of trial and error stuff.

ErnieBernie10 avatar Nov 20 '21 12:11 ErnieBernie10