Some GUI cleanup

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@993 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-05-19 09:45:50 +00:00
parent 5fb4cc201b
commit 15efba29de
4 changed files with 17 additions and 11 deletions

View File

@@ -876,18 +876,22 @@ void trackContentWidget::paintEvent( QPaintEvent * _pe )
QPainter pmp( &backgrnd );
QLinearGradient grad( 0,0, 0,h );
grad.setColorAt( 0, QColor( 96, 96, 96 ) );
grad.setColorAt( 1, QColor( 192, 192, 192 ) );
grad.setColorAt( 0.05, QColor( 64, 64, 64 ) );
grad.setColorAt( 0.7, QColor( 128, 128, 128 ) );
grad.setColorAt( 0.9, QColor( 160, 160, 160 ) );
grad.setColorAt( 1.0, QColor( 64, 64, 64) );
pmp.fillRect( 0, 0, w, h, grad );
QLinearGradient grad2( 0,0, 0,h );
grad2.setColorAt( 0, QColor( 64, 64, 64 ) );
grad2.setColorAt( 1, QColor( 128, 128, 128 ) );
grad2.setColorAt( 0.05, QColor( 48, 48, 48 ) );
grad2.setColorAt( 0.7, QColor( 96, 96, 96 ) );
grad2.setColorAt( 0.9, QColor( 120, 120, 120 ) );
grad2.setColorAt( 1.0, QColor( 48, 48, 48 ) );
pmp.fillRect( w, 0, w , h, grad2 );
// draw vertical lines
pmp.setPen( QColor( 80, 84, 96 ) );
for( int x = 0; x < w * 2; x += ppt )
pmp.setPen( QPen( QColor( 80, 84, 96, 192 ), 1 ) );
for( int x = 0; x <= w * 2; x += ppt )
{
pmp.drawLine( x, 0, x, h );
}

View File

@@ -261,9 +261,6 @@ void lfoControllerDialog::contextMenuEvent( QContextMenuEvent * )
void lfoControllerDialog::paintEvent( QPaintEvent * )
{
QPainter p( this );
p.setPen( QColor( 128, 64, 0 ) );
p.drawLine(0,0,40,40);
}

View File

@@ -197,8 +197,6 @@ void controllerView::paintEvent( QPaintEvent * )
f.setBold( TRUE );
p.setFont( f );
p.setPen( QColor( 64, 64, 64 ) );
p.drawLine(0,0,20,20);
p.drawText( 6, 55, castModel<controller>()->publicName() );
p.setPen( Qt::white );
p.drawText( 5, 54, castModel<controller>()->publicName() );