mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
New Profile: make axis labels smaller
Previously all text in the new profile was deawn in the same font. With this change the labels on all axes are smaller. It might be even better to allow per-axis configuration of the label size as along the time axis the bigger size looked better. But especially for partial pressures this looks much better. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cb5ab4bc8e
commit
980737221d
3 changed files with 20 additions and 1 deletions
|
@ -164,6 +164,7 @@ void DiveCartesianAxis::updateTicks()
|
|||
label->setText(textForValue(currValue));
|
||||
label->setBrush(QBrush(textColor));
|
||||
label->setBrush(colorForValue(currValue));
|
||||
label->setScale(0.8);
|
||||
labels.push_back(label);
|
||||
if (orientation == RightToLeft || orientation == LeftToRight) {
|
||||
label->setAlignment(Qt::AlignBottom | Qt::AlignHCenter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue