I am trying to decorate the floats in my thesis as follows:
- each float shall have a top/bottom frame in a custom color,
- the caption and content of each float are supposed to have the same background color.
Basically, what I want it to look like is this:

So far I've only managed to do this by embedding the float in a framed text like this:
\startframedtext[frame=off,topframe=on,bottomframe=on,framecolor=darkgray,background=color,backgroundcolor=lightgray]
\placefigure[here][figure:figure label]
{figure caption}
{figure content}
\stopframedtext
This works as long as the float is placed somewhere in the middle of a page. But as soon as they are the first element on a page, caption and content are moved out of the framed text and it looks a bit like this:

I guess this has to do with the special way floats are placed by ConTeXt.
Now, I wonder if there is a way to fix this. One way could be to not use floats at all and setup a custom enumerated environment with labels instead. Any ideas what else I could try? \setupfloats and \setupcaptions do have before=, after= and inbetween= options but I couldn't get them to create the desired decorations for me.
