On Wednesday 30 July 2003 4:10 pm, Martin Vermeer wrote:
> > Sure. But, having grey text on a grey background might be a little hard
> > to read.
> > A
>
> But the background wouldn't be grey, would it? It would be the *inset*
> background, not the *button* background.

Oh, I see.

Why is that hard? 

The text is stored in 

class InsetCollapsable {
public:
        mutable InsetText inset;
};

In turn, the data is stored in

class InsetText {
public:
        mutable LyXText text_;
};

which in turn has various LyXFont members
        /// the current font settings
        LyXFont current_font;
        /// the current font
        LyXFont real_current_font;
        /// our buffer's default layout font
        LyXFont defaultfont_;

So, you need to ask someone knowledgable about exactly which font you should 
be setting, but you should be able to end up calling

class LyXFont {
public:
        LyXFont & setColor(LColor::color c);
};

Angus

Reply via email to