Good night…
… and with this I’ll give you:
Edit: This of course works under compiz and metacity (+compositor). Under plain metacity you would not get the transparency against the desktop though. You can find this and other examples in a branch of notify-osd here.
This entry was posted
on Wednesday, July 8th, 2009 at 3:27 am and is filed under cairo, notifications, ubuntu.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
July 8th, 2009 at 6:27 am
Pretty.
Poor Behdad, though.
July 8th, 2009 at 10:44 am
[...] there http://macslow.net/?p=354 with more spit and [...]
July 8th, 2009 at 11:07 am
Too fast!! I can’t read it
July 8th, 2009 at 11:21 am
@ Richard: Yeah, I got a shock at first when Jorge came down to the hack-room and said Behdad is all bloody and needs medical assistance. Initially I thought he had a nasty accident and was unconscious. Fortunately Behdad could easily walk by himself. After taken to hospital he came back with ~4 stitches in his upper lip.
@ Cimi: You nitpicker you. It’s an example of course *g*
July 8th, 2009 at 11:23 am
Fantastic stuff!
You’ll be my hero for ever and ever!
July 8th, 2009 at 2:22 pm
Gaaah!!! I’ve hated notifications coming up on top of other stuff since I installed 9.04!!!
I didn’t get to file a bug about this and now I know it’ll be fixed! I love this
Tx. for your frequent postings about your work!
July 8th, 2009 at 2:28 pm
Strangely enough, transparency with blur works for me, with trunk, and i don’t use compiz (but i have the XFCE compositor).
July 8th, 2009 at 4:11 pm
[...] 原文:http://macslow.net/?p=354 [...]
July 8th, 2009 at 5:20 pm
@ Fabian: I’m a bit confused by your comment. You could always click through a notification-bubble. What in particular to you see fixed there?
@ Steve: Which kind of blur works for you? The “behind the bubble”-blur I assume. Because “in-bubble”-blur I’ve not yet committed to trunk.
@ 通知工具支持文字动画: Wow, chinese (just guessing it’s chinese)! I’ve no idea what they’ve written there *g*
July 8th, 2009 at 8:29 pm
Nice stuff!
BTW the Chinese stuff is (according to google translate):
“Ubuntu 9.10 seems to notice tools will greatly increase, because those who have just recently developed it to support the beautiful “text animation.”
A full-featured notification mechanism just around the corner. ”
Sounds like poetry
July 8th, 2009 at 11:00 pm
How is this useful? I mean no offence MacSlow, you are a cool guy, but this seems like a bad idea. marquee is a deprecated tag now for a reason…
July 9th, 2009 at 12:38 am
@jeebt: Ah, thanks. Sounds sort of nice… well at least not negative.
@antani: The reason behind this you find explained here… https://wiki.ubuntu.com/NotifyOSD#Inside%20the%20bubble (text drop-shadow), https://wiki.ubuntu.com/NotifyOSD#Interaction (in-bubble blur), https://wiki.ubuntu.com/NotifyOSD#Animations%20and%20durations (text-animation) Remember that what you see in the screencast is an example exercising the different drawing APIs/funtions I had to implement in order to extend notify-osd with the required features. I don’t understand the term “marquee” in that context. Therefore I do not understand what you mean by “deprecated tag” in relation to that.
July 12th, 2009 at 1:00 am
antani is talking about marquee tag in HTML. Don’t think marquee text in notifications are usefull. I think some animation like growing bubbles in mouseover is best.
What do you mean by “blur-cache”? I believe the text is rendered with pangocairo, and you blur several times the text texture to compose the animation, and finally just scroll it inside the notification bubble. The text width is fixed for pango. Am I right?
Great feature the blur/alpha value based on proximity distance. What is the distance update frequency?.
July 13th, 2009 at 9:45 am
The chinese blog says another interesting thing (according to Google Translate, of course ^^):
they suggest the use of animated text bubbles for showing lyrics. Useful for karaoke apps
July 15th, 2009 at 10:00 am
@ João: Ah ok. Well the constant animation you see is just used in this example. In notify-osd it will not scroll permanently. Growing the bubble is (and will) not be triggered by mouse-over. When scrolling is used it will only scroll a few lines of text (depending on how much text was added by an “append-case” coming from an IM-client). No the blur is calculated only once, saved in a surface-cache and then used for animation. You are right, the width of a bubble (text) is fixed, only the height (number of lines of body-text - upto 10) can adapt during a bubbles lifetime. The update-frequency of the distance is 1/25 currently.
@ pikkio: Thanks. Gee, people are always so fast with unintended ideas for the notifications
May 2nd, 2010 at 8:06 am
[...] 原文:http://macslow.net/?p=354(责任编辑:A6) Post a Comment [...]