mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
\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:
parent
fa3c8d6894
commit
38ed6cd1a0
@ -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" },
|
||||
|
@ -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
|
||||
|
@ -58,6 +58,7 @@ public:
|
||||
/// possible line widths
|
||||
enum line_width {
|
||||
line_thin, //< thin line
|
||||
line_medium, //< medium line
|
||||
line_thick //< thick line
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user