Prior to this patch was the line in a color of the word wrap marker painted, now its the folding color.
The line was, at least here, always hard to see, so it's now painted thicker and slightly more above.
To avoid the line will overpaint the text is the code moved up, before the text painting.
Details
Details
- Reviewers
cullmann - Group Reviewers
KTextEditor - Commits
- R39:d9171c391267: Paint the folding marker in proper color and make it more visible
For your convenience the raw change before the lines are moved up
@@ -886,12 +886,13 @@ void KateRenderer::paintTextLine(QPainter &paint, KateLineLayoutPtr range, int x if (!(flags & SkipDrawFirstInvisibleLineUnderlined) && range->startsInvisibleBlock()) { const QPainter::RenderHints backupRenderHints = paint.renderHints(); paint.setRenderHint(QPainter::Antialiasing, false); - QPen pen(config()->wordWrapMarkerColor()); + QPen pen(config()->foldingColor()); pen.setCosmetic(true); pen.setStyle(Qt::DashLine); pen.setDashOffset(xStart); + pen.setWidth(2); paint.setPen(pen); - paint.drawLine(0, (lineHeight() * range->viewLineCount()) - 1, xEnd - xStart, (lineHeight() * range->viewLineCount()) - 1); + paint.drawLine(0, (lineHeight() * range->viewLineCount()) - 2, xEnd - xStart, (lineHeight() * range->viewLineCount()) - 2); paint.setRenderHints(backupRenderHints); }
Diff Detail
Diff Detail
- Repository
- R39 KTextEditor
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.