- the idea is to color the box inset frame according to the fame color of the box (if there is any). To keep the WYSIWYM principle the frame thickness and box separation are not taken into account. However this should be possible if anybody would like that.
- besides this, use the correct conversion command for the background color
label = bformat(_("%1$s (%2$s, %3$s)"),
type, inner, frame);
setLabel(label);
+
+ // set the frame color for the inset if the type is Boxed
+ if (btype == Boxed)
+ setFrameColor(lcolor.getFromLaTeXName(params_.framecolor));
+ else
+ setFrameColor(Color_collapsableframe);
}
} else {
if (params_.backgroundcolor == "none")
return getLayout().bgcolor();
- ColorCode boxbackground = lcolor.getFromLyXName(params_.backgroundcolor);
+ ColorCode boxbackground = lcolor.getFromLaTeXName(params_.backgroundcolor);
return boxbackground;
}
return getLayout().bgcolor();