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")) {
+ && buffer().params().isnotefontcolor) {
ColorCode c = lcolor.getFromLyXName("notefontcolor");
if (c != Color_none)
font.setColor(c);
+ // This is the local color (not overridden by other documents)
+ ColorCode lc = lcolor.getFromLyXName("notefontcolor@" + buffer().fileName().absFileName());
+ if (lc != Color_none)
+ font.setPaintColor(lc);
}
return font;
}