App server and drop shadow?


#1

Does the new AppServer support drop shadows? Or does that need 3D hardware acceleration?
I found a place in the xcode documentation where the navigation reminds of Haikus navigation. And the added drop shadow really helps to visualize the z-order of the windows.

Btw have you guys seen these mock ups?

Are there any attempts to modernize the looks of haiku?


#2

New AppServer? Do we have a new one? I haven’t noticed it.

Drop shadow doesn’t need 3D acceleration.
Efficient drop shadow requires hovewer compositing support in AppServer. This is missing, afaik.


#3

Compared to the one I used in 2000 its new. :slight_smile:


#4

Nope, the one used in 2000 was the BeOS AppServer.
The one in Haiku have nothing to do with the BeOS AppServer except the provided functionality and name.
So it is not new, it is the Haiku one.


#5

I did see those mockups, but if I recall correctly, their author was adamant that we would not accept it ever or something like that. Which is not really true: we already have alternate decorators (BeDecorator, WinDecorator), you can already ship more in packages as you like, and you will soon be able to add theming engines to these. So I’m not sure what his opposition was…

Also, yes, app_server can’t really support drop shadows on window borders without good compositing. I mean you could implement it, but it would likely be very slow.


#6

If I would implement it, it wouldn’t be slow. I don’t write slow code :wink:

Does the appearance app support theming of menus? Would be very nice to be able to remove borders (or set border color to fake it) and also add support for leading, trailing, top/bottom spacing for (BMenu). I haven’t been coding in BeOS/Haiku for 15 years, so I don’t remember the classes correctly.

//Mikael


#7

It does not at present but will soonish, I need to move the BControlLook instantation around a bit.


#8

Sounds great. Back in the days I wrote some decorators for YellowTab’s, Zeta.
Do you need the full source code for Haiku to write decorators? Or can you develop them like normal apps?


#9

I’m not sure. You should be able to develop them like normal apps, but I wouldn’t be surprised if we’re missing some files in the devel package for this. If you can’t do it, file a bug.


#10

Yes, they are just standard add-ons but you may need to extract a .h file from Haiku sources, and probably start from a copy of the existing decorator as a skeleton.

As for drop shadow, personally I find the ones in OSX way too large and ugly. I’m sure we can do something more subtle and elegant that fits with Haiku style, and it could even be faster to draw.