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.

16 Responses to “Good night…”

  1. Richard Says:

    Pretty.

    Poor Behdad, though.

  2. Mirco Müller (macslow) 's status on Wednesday, 08-Jul-09 09:43:57 UTC - Identi.ca Says:

    [...] there http://macslow.net/?p=354 with more spit and [...]

  3. Andrea Cimitan Says:

    Too fast!! I can’t read it :)

  4. MacSlow Says:

    @ 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*

  5. tm Says:

    Fantastic stuff!
    You’ll be my hero for ever and ever!

  6. Fabian Rodriguez Says:

    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!

  7. Steve Dodier Says:

    Strangely enough, transparency with blur works for me, with trunk, and i don’t use compiz (but i have the XFCE compositor).

  8. Ubuntu 通知工具支持文字动画 | Linux桌面中文网 Says:

    [...] 原文:http://macslow.net/?p=354 [...]

  9. MacSlow Says:

    @ 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*

  10. jeebt Says:

    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 ;-)

  11. antani Says:

    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…

  12. MacSlow Says:

    @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.

  13. João Barbosa Says:

    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?.

  14. pikkio Says:

    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 :)

  15. MacSlow Says:

    @ 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 :)

  16. Ubuntu 通知工具支持文字动画 Says:

    [...] 原文:http://macslow.net/?p=354(责任编辑:A6) Post a Comment [...]

Leave a Reply