I haven't posted in about 2 weeks, so I figure I ought to give a quick update on what's going on. I'm with the family for the holidays, and there's no wireless at my mom's house, and things are nuts what with the whole extended family visiting. Oh, and my mother has not complained at all about Hardy (upgraded her computer from Gutsy in August), so yay. I mentioned before that I wanted to teach my little cousin Python. I gave her an old laptop I salvaged that runs Edubuntu for Christmas. She seems to love KAnagram. She was also really excited when I showed her KTurtle and helped her make the turtle draw a blue triangle. In the Python world, I've only shown her a
print "Hello "+name thing so far. She looked back and forth between the line where I set name's value and that line and the output line a few times then went "oh!" so I think she understood variables.
OK so I got Hardy and Edubuntu into that paragraph. See, I wasn't totally off-topic! Anyway, the rest is about my "Holiday Hacking" project.
I like having a gradient on my gnome-panel. Consequently, every time I change my theme, I go into GIMP and make a matching gradient background image. I improved this process slightly by creating an SVG in which I can just change the color values. Blogger won't let me upload an SVG, so here's a png:
Since this gets old after a while, I'm working on adding functionality to gnome-panel so that I can pick a shadow color, a highlight color, and an opacity level for the highlight. I can't be the only one that likes the look of a gradient on a panel, so I'm sure someone else could get some use out of this.
A peek at the addition to the panel-properties-dialog:
I need to look more into how Cairo's gradients work though. One of the things I did to make the gradient on my SVG look balanced and keep the text legible was put the highlight's color stop 1/3 from the top and the top shadow color stop is actually 15% above the edge of the image. I'm not sure I can do that 15%-outside thing with Cairo. Might have to find a midway color value and set that as the top color stop. We'll see.
The status of this project is that I've modified the .glade file so there's some UI already, and I've settled on using GDK's Cairo integration because Cairo can easily paint linear rgba gradients. I think I've gone through all the functions that setup what options there are for background types, and tonight I started tying the functions to the buttons I made in Glade. Still a lot more to go (like actually writing the gradient part), but I need to have a way for the buttons and gconf to communicate before I can have any way to interact with (read: test) the gradient stuff, so I figure I ought to do that first.
I don't know if this'll make it into GNOME 2.26 or if it'll have wait until the Fall release. UI Freeze is next week, and obviously there's a UI change involved. Maybe I can submit the UI change next week and then keep working right up until Feature Freeze (19 Jan) to get it in this release.
Anyone else spending their holidays hacking on FOSS?