- InsetCollapsable::read(buf, lex);
- setButtonLabel();
-}
-
-
-void InsetNote::setButtonLabel()
-{
- docstring const label = notetranslator_loc().find(params_.type);
- setLabel(label);
-
- LyXFont font(LyXFont::ALL_SANE);
- font.decSize();
- font.decSize();
-
- switch (params_.type) {
- case InsetNoteParams::Note:
- font.setColor(LColor::note);
- setBackgroundColor(LColor::notebg);
- break;
- case InsetNoteParams::Comment:
- font.setColor(LColor::comment);
- setBackgroundColor(LColor::commentbg);
- break;
- case InsetNoteParams::Greyedout:
- font.setColor(LColor::greyedout);
- setBackgroundColor(LColor::greyedoutbg);
- break;
- case InsetNoteParams::Framed:
- font.setColor(LColor::greyedout);
- setBackgroundColor(LColor::greyedoutbg);
- break;
- case InsetNoteParams::Shaded:
- font.setColor(LColor::greyedout);
- setBackgroundColor(LColor::shadedbg);
- break;
- }
- setLabelFont(font);