- InsetCollapsable::read(buf, lex);
- setLayout(buf.params());
- setButtonLabel();
-}
-
-
-void InsetNote::setButtonLabel()
-{
- docstring const label = notetranslator_loc().find(params_.type);
- setLabel(label);
- // isn't this an identity? - MV
- setLabelFont(layout_.labelfont);
-}
-
-
-Color_color InsetNote::backgroundColor() const
-{
- Color_color c;
- switch (params_.type) {
- case InsetNoteParams::Note:
- c = Color::notebg;
- break;
- case InsetNoteParams::Comment:
- c = Color::commentbg;
- break;
- case InsetNoteParams::Greyedout:
- c = Color::greyedoutbg;
- break;
- case InsetNoteParams::Framed:
- c = Color::greyedoutbg;
- break;
- case InsetNoteParams::Shaded:
- c = Color::shadedbg;
- break;
- }
- return c;