mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Isolate painter in selection square.
This commit is contained in:
parent
d164ec4d91
commit
1a4b6b1c9c
1 changed files with 2 additions and 0 deletions
|
@ -129,6 +129,7 @@ drawPartitionSquare( QPainter* painter, const QRect& rect, const QBrush& brush )
|
|||
static void
|
||||
drawSelectionSquare( QPainter* painter, const QRect& rect, const QBrush& brush )
|
||||
{
|
||||
painter->save();
|
||||
painter->setPen( QPen( brush.color().darker(), 1 ) );
|
||||
QColor highlightColor = QPalette().highlight().color();
|
||||
highlightColor = highlightColor.lighter( 500 );
|
||||
|
@ -137,6 +138,7 @@ drawSelectionSquare( QPainter* painter, const QRect& rect, const QBrush& brush )
|
|||
painter->translate( .5, .5 );
|
||||
painter->drawRoundedRect( rect.adjusted( 0, 0, -1, -1 ), CORNER_RADIUS, CORNER_RADIUS );
|
||||
painter->translate( -.5, -.5 );
|
||||
painter->restore();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue