tweak wave underline

This commit is contained in:
Roy Qu 2024-03-21 22:23:07 +08:00
parent e72b780dc3
commit ce45cae6ed
1 changed files with 2 additions and 2 deletions

View File

@ -475,7 +475,7 @@ void QSynEditPainter::paintEditAreas(const EditingAreaList &areaList)
for (const PEditingArea& p:areaList) {
int penWidth = std::max(1.0,std::round(mEdit->font().pixelSize() / 15.0));
if (p->type == EditingAreaType::eatWaveUnderLine)
penWidth = std::max(1.0,std::round(mEdit->font().pixelSize() / 21.0));
penWidth = std::max(1.0,std::round(mEdit->font().pixelSize() / 15.0));
if (p->beginX > mRight)
continue;
if (p->endX < mLeft)
@ -509,7 +509,7 @@ void QSynEditPainter::paintEditAreas(const EditingAreaList &areaList)
}
break;
case EditingAreaType::eatWaveUnderLine: {
int maxOffset = 2*penWidth;
int maxOffset = 3*penWidth;
int offset = maxOffset;
int lastX=rc.left();
int lastY=rc.bottom()-offset;