mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-13 03:27:06 -04:00
Revert knob dots, make knob arc use palette, remove bb-editor image... bye bye TR-808 :(
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -116,9 +116,6 @@ bbEditor::bbEditor( bbTrackContainer* tc ) :
|
||||
tr( "Click here to stop playing of current "
|
||||
"beat/bassline." ) );
|
||||
|
||||
QLabel * l = new QLabel( m_toolBar );
|
||||
l->setPixmap( embed::getIconPixmap( "drum" ) );
|
||||
|
||||
m_bbComboBox = new comboBox( m_toolBar );
|
||||
m_bbComboBox->setFixedSize( 200, 22 );
|
||||
m_bbComboBox->setModel( &tc->m_bbComboBoxModel );
|
||||
@@ -134,7 +131,6 @@ bbEditor::bbEditor( bbTrackContainer* tc ) :
|
||||
tb_layout->addStretch();
|
||||
tb_layout->addWidget( remove_bar );
|
||||
tb_layout->addWidget( add_bar );
|
||||
tb_layout->addWidget( l );
|
||||
tb_layout->addSpacing( 15 );
|
||||
|
||||
engine::mainWindow()->workspace()->addSubWindow( this );
|
||||
|
||||
@@ -328,8 +328,11 @@ void knob::drawKnob( QPainter * _p )
|
||||
|
||||
const int arcLineWidth = 2;
|
||||
const int arcRectSize = m_knobPixmap->width() - arcLineWidth;
|
||||
|
||||
p.setPen( QPen( QColor( 255, 255, 255, 70 ), 2 ) );
|
||||
|
||||
QColor col = QApplication::palette().color( QPalette::Active, QPalette::WindowText );
|
||||
col.setAlpha( 70 );
|
||||
|
||||
p.setPen( QPen( col, 2 ) );
|
||||
p.drawArc( mid.x() - arcRectSize/2, 1, arcRectSize, arcRectSize, 315*16, 16*m_totalAngle );
|
||||
|
||||
switch( m_knobNum )
|
||||
|
||||
Reference in New Issue
Block a user