lex.eatLine();
string color = lex.getString();
notefontcolor = lyx::rgbFromHexName(color);
+ lcolor.setColor("notefontcolor", color);
} else if (token == "\\boxbgcolor") {
lex.eatLine();
string color = lex.getString();
#include "BufferParams.h"
#include "BufferView.h"
#include "BufferParams.h"
+#include "ColorSet.h"
#include "Counters.h"
#include "Cursor.h"
#include "DispatchResult.h"
return (params_.type == InsetNoteParams::Greyedout || lyxrc.spellcheck_notes);
}
+FontInfo InsetNote::getFont() const
+{
+ FontInfo font = getLayout().font();
+ // FIXME: This hardcoded color is a hack!
+ if (params_.type == InsetNoteParams::Greyedout
+ && buffer().params().notefontcolor != lyx::rgbFromHexName("#cccccc")) {
+ ColorCode c = lcolor.getFromLyXName("notefontcolor");
+ if (c != Color_none)
+ font.setColor(c);
+ }
+ return font;
+}
+
string InsetNote::params2string(InsetNoteParams const & params)
{