Andreas
Qt
KDE
Posted by Andreas
 in Qt, KDE
 on Monday, January 23, 2006 @ 09:27

As requested, this shows Plastique2 on a black background:

And on a blue background:

That last color scheme can give you a headache ;-).

Andreas
Qt
KDE
Posted by Andreas
 in Qt, KDE
 on Friday, January 20, 2006 @ 20:26

There’s a lot of stuff going on in Development at Trolltech these days. So much that it’s really hard to keep your Importants and Urgents in order, trying hard not to lapse into brain hypothema(? all google hits for that word seem to be in Dutch), but at the same time we’re having so much fun with making Qt 4 better and better, that it’s hard to keep your hands off the keyboard! ;-) Whether it’s profiling and optimizing, creating new classes or polishing existing ones, there’s enough by far to keep any developer busy. And btw, we need more developers (and developesses, please!), so hint-hint, if you’re looking for a job… :-)

Wait up, wait up, back to the I’s and U’s. What’s Important is of course fixing critical bugs like crashes, serious usability issues and regressions. What’s Urgent is basically what has got to happen before some magic milestone X, like making stuff compile on Windows with MSVC .NET 2003 before we release 4.1.1. So you have to do your Important and Urgent stuff first. But then, there’s what you are passionate about. You know the feeling. When there’s something you just have to do, because it makes you feel great! And you typically get that feeling at 03:00am or when you just entered a 11-hour plane ride with no laptop around.

Anyway, today, passion has driven me to do more work on Plastique2. So Plastique is the default style on KDE for Qt apps that don’t know better, but it doesn’t quite deal with propagated backgrounds, like texture backgrounds and bases of a line edit. But now, with Plastique2, things are looking a whole lot better. Note that this is a jpeg, click on it to get the uncompressed png instead.

So what I’ve done is I’ve ditched the idea of “faking” alpha transparency, and gone the whole way through. So once finished, this will be the first true alpha blended Qt style, unless someone makes one before I’m done, of course. Some important points to notice here are:

  • The button contrast is improved, and the frame border color is now correct for all palette variants (no more black-black borders just because you chose a dark button color).
  • All sunken frames shade properly against the backdrop. Look at the inside of the line edits with the beauutiful brown texture base.
  • Radio buttons are drawn using QPainter::Antialiasing, which gives it a much smoother look than in Plastique.
  • You can set colors, gradients and brushes on any palette entry on any widget. The buttons on the left hand simply use a pink linear gradient or texture brush for the button’s QPalette::Button palette entry. Notice the shading on the button bevel. Expensive? Yes, very. ;-) But luckily it’s cached.
The code that generates a button used to be close to 180 lines of code. With Plastique2, it’s 130 lines, and looks better, I think, anyway. :-) In general, all of the controls are drawn using less code. The radio buttons, for instance, were 72 lines, and check boxes were 89 lines of code. In addition, Plastique2 has something like 200-300 lines of inlined sprites. Now check boxes are 55 lines, and radio buttons are 33 lines, no sprites ;-).

On the right, you can see an editable combobox with a white Base and green Button, and one with a texture Base and a gradient Button.

If you have any suggestions to what we could do to make Plastique2 rock even more, please let me know! And thanks again to Sandro Giessl who authored the original style, Plastik, from which Plastique has emerged. Any day of working on Plastique is a day of pleasure. ;-)

PS: Whether Plastique2 will replace Plastique (and be renamed Plastique) is not yet known, and even whether Plastique2 will be part of Qt 4 at all, has not yet been decided. So keeping our politics in order, all disclaimers posted, everything you have seen is subject to change. :-)

lorn
Qt
Qtopia
KDE
Posted by lorn
 in Qt, Qtopia, KDE
 on Monday, January 16, 2006 @ 19:49

The FSF has released a draft of the GPL version 3…

http://gplv3.fsf.org/draft

Comments Off
lorn
Qt
Qtopia
KDE
Posted by lorn
 in Qt, Qtopia, KDE
 on Saturday, January 14, 2006 @ 01:29
You scored as Journalism. You are an aspiring journalist, and you should major in journalism! Like me, you are passionate about writing and expressing yourself, and you want the world to understand your beliefs through writing.

Journalism

92%

Art

83%

Philosophy

83%

Biology

75%

Dance

75%

Theater

75%

Sociology

50%

English

50%

Mathematics

42%

Linguistics

42%

Psychology

33%

Engineering

33%

Chemistry

25%

Anthropology

25%

What is your Perfect Major? (PLEASE RATE ME!!<3)
created with QuizFarm

Well, there ya go. My major _was_ journalism. That is, before I became a ski bum!

and I suppose my current job has a lot of journalistic aspects to it.

Comments Off
lorn
Uncategorized
Posted by lorn
 in Uncategorized
 on Monday, January 09, 2006 @ 05:41

OK, I am over the international travelling thing for a while.

Just got home for the first time in about 5 weeks. The swim pool’s a deep shade of green, pool pump filter is broke, all 7 fish are dead (not part of the green pool, but perhaps would have lived longer there), lawn looks like a jungle and in places comes up to my chest (this is with family looking after the house while we were away!), Qantas seems to think that steamed vegetables (including steamed spinache) are what vegetarians eat regularly for breakie and a direct flight to Brisbane from L.A includes a 1.5 hour layover in New Zealand, American airport security insists that slip-on Vans with palm tree design need to be xray’d, but it’s ok to bring small knives on board.

I am ready to get back to work now, when I recover and get a sense of what time it actually is, what side of the road I am supposed to drive on, and which currency I really need in my wallet.

It is good getting away from work to get a fresh perspective on things. It is really good to be back in Australia, where life is good, I feel free, and it’s summertime!!!!

Comments Off
harald
Uncategorized
Posted by harald
 in Uncategorized
 on Sunday, January 08, 2006 @ 16:04

The Qt LSB integration is in its final stages: http://chaos.troll.no/~harald/lsb/. Linking to the stub libraries and the stub headers will make sure that your Qt application will not use any private symbols and be a good Qt citizen. I’m currently adding the last bits and pieces to the LSB database to make sure that the official standard will also contain the layout of the virtual tables.

lorn
Qt
Posted by lorn
 in Qt
 on Wednesday, January 04, 2006 @ 14:13

I finally got started porting gutenbrowser to Qt 4. woohoo!! Will start out with the windows version, thanks to my employer being so generous and giving away it’s flagship product as GPL open source. This needs to be more of a rewrite, rather than a straight “port”. The Gutenberg index is getting so frickin’ big now (17,000 ebooks!!), it really needs a proper database. Besides, this is really ugly and old code. Geezz… maybe I should start from scratch.

I might try handwriting some code with this tablet pc. That should be interesting and fun.

Comments Off