Improve edit points rendering on Retina displays.
This commit is contained in:
parent
b218617469
commit
d110b5b518
|
@ -260,18 +260,18 @@ void EDIT_POINTS::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
|
|||
|
||||
if( brightness > 0.5 )
|
||||
{
|
||||
borderColor = drawColor.Darkened( 0.3 ).WithAlpha( 0.8 );
|
||||
highlightColor = drawColor.Brightened( 0.6 ).WithAlpha( 0.8 );
|
||||
borderColor = drawColor.Darkened( 0.7 ).WithAlpha( 0.8 );
|
||||
highlightColor = drawColor.Darkened( 0.5 ).WithAlpha( 0.8 );
|
||||
}
|
||||
else if( brightness > 0.2 )
|
||||
{
|
||||
borderColor = drawColor.Darkened( 0.6 ).WithAlpha( 0.8 );
|
||||
borderColor = drawColor.Brightened( 0.4 ).WithAlpha( 0.8 );
|
||||
highlightColor = drawColor.Brightened( 0.3 ).WithAlpha( 0.8 );
|
||||
}
|
||||
else
|
||||
{
|
||||
borderColor = drawColor.Brightened( 0.3 ).WithAlpha( 0.8 );
|
||||
highlightColor = drawColor.Brightened( 0.6 ).WithAlpha( 0.8 );
|
||||
borderColor = drawColor.Brightened( 0.7 ).WithAlpha( 0.8 );
|
||||
highlightColor = drawColor.Brightened( 0.5 ).WithAlpha( 0.8 );
|
||||
}
|
||||
|
||||
gal->SetFillColor( drawColor );
|
||||
|
|
|
@ -189,11 +189,13 @@ public:
|
|||
///< Single point size in pixels
|
||||
static const int POINT_SIZE = 8;
|
||||
|
||||
///< Border size when not hovering
|
||||
static const int BORDER_SIZE = 2;
|
||||
|
||||
///< Border size when hovering
|
||||
static const int HOVER_SIZE = 5;
|
||||
#ifdef __WXMAC__
|
||||
static const int BORDER_SIZE = 3; ///< Border size when not hovering
|
||||
static const int HOVER_SIZE = 6; ///< Border size when hovering
|
||||
#else
|
||||
static const int BORDER_SIZE = 2; ///< Border size when not hovering
|
||||
static const int HOVER_SIZE = 5; ///< Border size when hovering
|
||||
#endif
|
||||
|
||||
private:
|
||||
VECTOR2I m_position; ///< Position of EDIT_POINT.
|
||||
|
|
Loading…
Reference in New Issue