\lyxline is a LyX-specific macro that creates a line in the output

- this line is defined with a width of 1pt -> therefore also draw it in this size in lyx
- this line is by default black -> use black
- setting a color for this in the preferences is wrong and senseless, because the color of this line is defined by the color chosen in the text style dialog -> remove preference color

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35185 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-08-24 01:13:26 +00:00
parent fa3c8d6894
commit 38ed6cd1a0
5 changed files with 4 additions and 5 deletions

View File

@ -231,7 +231,6 @@ ColorSet::ColorSet()
{ Color_changedtextauthor5, N_("changed text 5th author"), "changedtextauthor5", "#55aa00", "changedtextauthor5" },
{ Color_deletedtextmodifier, N_("deleted text modifier"), "deletedtextmodifier", "white", "deletedtextmodifier" },
{ Color_added_space, N_("added space markers"), "added_space", "Brown", "added_space" },
{ Color_topline, N_("top/bottom line"), "topline", "Brown", "topline" },
{ Color_tabularline, N_("table line"), "tabularline", "black", "tabularline" },
{ Color_tabularonoffline, N_("table on/off line"), "tabularonoffline",
"LightSteelBlue", "tabularonoffline" },

View File

@ -171,8 +171,6 @@ enum ColorCode
Color_changedtextauthor5,
/// Deleted text modifying color
Color_deletedtextmodifier,
/// Top and bottom line color
Color_topline,
/// Table line color
Color_tabularline,
/// Table line color

View File

@ -58,6 +58,7 @@ public:
/// possible line widths
enum line_width {
line_thin, //< thin line
line_medium, //< medium line
line_thick //< thick line
};

View File

@ -83,6 +83,7 @@ void GuiPainter::setQPainterPen(QColor const & col,
switch (lw) {
case line_thin: pen.setWidth(0); break;
case line_medium: pen.setWidth(1); break;
case line_thick: pen.setWidth(3); break;
}

View File

@ -59,8 +59,8 @@ void InsetLine::metrics(MetricsInfo & mi, Dimension & dim) const
void InsetLine::draw(PainterInfo & pi, int x, int y) const
{
Dimension const dim = dimension(*pi.base.bv);
pi.pain.line(x, y, x + dim.wid, y, Color_topline,
Painter::line_solid, Painter::line_thick);
pi.pain.line(x, y, x + dim.wid, y, Color_black,
Painter::line_solid, Painter::line_medium);
}