Commit 8ef3c7ae authored by Noah Davis's avatar Noah Davis 🌵
Browse files

Change symbol pen width to 1.01

parent 36fe9858
......@@ -51,6 +51,17 @@ namespace Breeze
};
//* standard pen widths
namespace PenWidth
{
/* Using 1 instead of slightly more than 1 causes symbols drawn with
* pen strokes to look skewed. The exact amount added does not matter
* as long as it isn't too visible.
*/
// The standard pen stroke width for symbols.
static constexpr qreal Symbol = 1.01;
}
//* exception
enum ExceptionMask
{
......
......@@ -190,7 +190,7 @@ namespace Breeze
QPen pen( foregroundColor );
pen.setCapStyle( Qt::RoundCap );
pen.setJoinStyle( Qt::MiterJoin );
pen.setWidthF( 1.1*qMax((qreal)1.0, 20/width ) );
pen.setWidthF( PenWidth::Symbol*qMax((qreal)1.0, 20/width ) );
painter->setPen( pen );
painter->setBrush( Qt::NoBrush );
......
......@@ -178,7 +178,7 @@ namespace Breeze
* as long as it isn't too visible.
*/
// The standard pen stroke width for symbols.
static constexpr qreal Symbol = 1.1;
static constexpr qreal Symbol = 1.01;
// The standard pen stroke width for frames.
static constexpr int Frame = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment