First off, Rikkus was right about double buffering. I really didn't think this
was needed and tried everything to get rid of the flicker but it didn't happen
until I double buffered the title. I was able to optimize this quite a bit
(only recalc on resize, only buffer the active title/color scheme, etc...).
In the meantime, I got rid of a lot of non-optimal painting and now use
NoBackground for the widget. The latter was a obvious move as it avoids a whole
clearing of the widget :P This resulted in a big speed improvement, which helps
offset the time taken in buffering ;-)
svn path=/trunk/kdebase/kwin/; revision=45264
client, which used matrixes and QPainter drawPixmap stuff. Now all that is
gone and it's almost entirely bitBlts.
Still buggy tho, so I'm keeping it disabled for now - but now it's
fast and buggy so I guess that should count for something ;-)
svn path=/trunk/kdebase/kwin/; revision=45235
For inclusion in CVS you must:
a) Follow the user color settings. This means no normal pixmaps, which when
used in a dedicated KWin style allow no configuration at all (you can't
override the pixmaps and you can't follow the color scheme). KWM themes
are for that, at least then everything is configurable. It makes no sense to
just make pixmaps then bitblt them, since it is way less functional than KWM
themes.
If you want to draw decorations first you can use kpixmap2bitmap in kdegraphics
to separate the shades and then kColorBitmaps in kdrawutil.h to draw it using
a colorgroup from the options class.
b) You must follow at least the color settings from the user Options class.
svn path=/trunk/kdebase/kwin/; revision=45132
Screenshot at http://www.geoid.clara.net/riscos.png
Next thing to do is to remove the lines of the title pixmap where
they pass under the text, fading them out as they approach the text.
I'd also like higher contrast between active and inactive, so the
active title might turn black (I'm a NeXT addict)
svn path=/trunk/kdebase/kwin/; revision=45099
the text when using tiny titlebars but it looks like crap without it ;-)
BTW, is this style working well for laptop people?
svn path=/trunk/kdebase/kwin/; revision=44853
satisfy both laptop users who want large buttons and those who have low
resolution and want small bars. So I made it configurable :)
You can now set the titlebar height anywhere from 14 to 32 pixels, which also
changes the button size:
You currently need to edit ~/.kde/share/config/kwinrc and set:
[Laptop]
TitleHeight=Some number between 14-32.
Then restart KWin (it's not in the options class yet). The default is still
a small titlebar.
Here's the shot I put up before with the default small titlebar:
http://www.mosfet.org/kwinlaptop.gif
Here's one with a larger titlebar (21 pixels):
http://www.mosfet.org/laptop-bigtitlebar.gif
svn path=/trunk/kdebase/kwin/; revision=44755
width. The issue here is I want to make the buttons as wide as possible for
laptop mice without having the titlebar be all buttons and no title ;-) My
solution so far is making the common buttons bigger and the uncommon ones
smaller. It's not consistent but let's me make the areas frequently hit
wide as hell, which is good for a laptop :) Close, iconify, and maximize are
larger - sticky and help are smaller.
Another updated shot is at:
http://www.mosfet.org/kwinlaptop.gif
svn path=/trunk/kdebase/kwin/; revision=44698
It features a reduced height taskbar with oversized width buttons (I may make
these even wider to make them easier to hit), a minimal frame, and a
oversized shaped resize handle. Uses the system KWin style buttons, not just
because I like them but because they fit in the reduced size bar ;-)
As usual, here's a screenshot:
http://www.mosfet.org/kwinlaptop.gif
On another note, the Be style is going away and is now replaced by B2. Be
needs work so I asked Matthias Ettrich about it (he's the maintainer of that
style), and it turns out he's already using B2 :)
svn path=/trunk/kdebase/kwin/; revision=44656
It uses Be-like shaped titlebars, KDE standard buttons, has a shaped resize
handle, and automatically detects if you are on a highcolor display and if so
uses gradients based off the current color scheme. BTW, the buttons don't
necessarily match the titlebar but use the button foreground setting in KDE's
display settings so you can change them to whatever you like.
If no one objects I'll probably disable the old Be style. Unlike this style it
uses Be-like buttons but the drawing isn't very fancy and Be's two buttons are
a big restriction in KDE.
You can see a screenshot at:
http://www.mosfet.org/b2kwin.gif
svn path=/trunk/kdebase/kwin/; revision=44420
original. This is my attempt at making it more kosher. As a bonus,
the title font is also vertically centered.
Unfortunately, the titlebar is still missing a line at the very top,
so the buttons are still not flush with it. I hope someone can fix
it!
svn path=/trunk/kdebase/kwin/; revision=44093
smaller than the sizeHint of the bar.
Repainting is also messed up with all the clients it seems... dunno how that
happened :P
svn path=/trunk/kdebase/kwin/; revision=43873