edit colors

This commit is contained in:
Kizarm 2024-11-11 11:42:01 +01:00
parent e0e6b36878
commit 73d4e43f97

View file

@ -262,7 +262,7 @@ void DisplayWidget::drawBackground() {
// triger
const double ofs = (m_TrgSource ? m_offset.b : m_offset.a) - HALF_Y;
QPointF trg (m_ts->offset, m_ts->value + ofs);
QPen pc (QColor(0,0,255), 1);
QPen pc (QColor(0,128,255), 1);
p.setPen(pc);
const QLineF hline (xb, trg.y(), xe, trg.y());
const QLineF vline (trg.x(), -ye, trg.x(), ye);
@ -285,12 +285,15 @@ void DisplayWidget::drawBackground() {
// offsets
QPen ofpen(pcol.colA);
QVector<qreal>dashes;
dashes << 5 << 5 << 1 << 5;
const qreal gap = 10;
dashes << gap << gap;
ofpen.setDashPattern(dashes);
p.setPen (ofpen);
const QLineF oa (xb, m_offset.a, xe, m_offset.a);
p.drawLine (m_forward.map(oa));
ofpen.setColor(pcol.colB);
ofpen.setDashPattern(dashes);
ofpen.setDashOffset(gap);
p.setPen (ofpen);
const QLineF ob (xb, m_offset.b, xe, m_offset.b);
p.drawLine (m_forward.map(ob));