75 |
m_iErrorCount = 0; |
m_iErrorCount = 0; |
76 |
|
|
77 |
if (++g_iMidiActivityRefCount == 1) { |
if (++g_iMidiActivityRefCount == 1) { |
78 |
g_pMidiActivityLedOn = new QPixmap(":/icons/ledon1.png"); |
g_pMidiActivityLedOn = new QPixmap(":/images/ledon1.png"); |
79 |
g_pMidiActivityLedOff = new QPixmap(":/icons/ledoff1.png"); |
g_pMidiActivityLedOff = new QPixmap(":/images/ledoff1.png"); |
80 |
} |
} |
81 |
|
|
82 |
m_ui.MidiActivityLabel->setPixmap(*g_pMidiActivityLedOff); |
m_ui.MidiActivityLabel->setPixmap(*g_pMidiActivityLedOff); |
248 |
m_ui.MidiPortChannelTextLabel->setPalette(pal); |
m_ui.MidiPortChannelTextLabel->setPalette(pal); |
249 |
pal.setColor(QPalette::Foreground, Qt::green); |
pal.setColor(QPalette::Foreground, Qt::green); |
250 |
if (bDisplayEffect) { |
if (bDisplayEffect) { |
251 |
QPixmap pm(":/icons/displaybg1.png"); |
QPixmap pm(":/images/displaybg1.png"); |
252 |
pal.setBrush(QPalette::Background, QBrush(pm)); |
pal.setBrush(QPalette::Background, QBrush(pm)); |
253 |
} else { |
} else { |
254 |
pal.setColor(QPalette::Background, Qt::black); |
pal.setColor(QPalette::Background, Qt::black); |
489 |
// Mute/Solo button state coloring... |
// Mute/Solo button state coloring... |
490 |
bool bMute = m_pChannel->channelMute(); |
bool bMute = m_pChannel->channelMute(); |
491 |
const QColor& rgbButton = pal.color(QPalette::Button); |
const QColor& rgbButton = pal.color(QPalette::Button); |
492 |
|
const QColor& rgbButtonText = pal.color(QPalette::ButtonText); |
493 |
pal.setColor(QPalette::Foreground, rgbFore); |
pal.setColor(QPalette::Foreground, rgbFore); |
494 |
pal.setColor(QPalette::Button, bMute ? Qt::yellow : rgbButton); |
pal.setColor(QPalette::Button, bMute ? Qt::yellow : rgbButton); |
495 |
|
pal.setColor(QPalette::ButtonText, bMute ? Qt::darkYellow : rgbButtonText); |
496 |
m_ui.ChannelMutePushButton->setPalette(pal); |
m_ui.ChannelMutePushButton->setPalette(pal); |
497 |
m_ui.ChannelMutePushButton->setDown(bMute); |
m_ui.ChannelMutePushButton->setDown(bMute); |
498 |
bool bSolo = m_pChannel->channelSolo(); |
bool bSolo = m_pChannel->channelSolo(); |
499 |
pal.setColor(QPalette::Button, bSolo ? Qt::cyan : rgbButton); |
pal.setColor(QPalette::Button, bSolo ? Qt::cyan : rgbButton); |
500 |
|
pal.setColor(QPalette::ButtonText, bSolo ? Qt::darkCyan : rgbButtonText); |
501 |
m_ui.ChannelSoloPushButton->setPalette(pal); |
m_ui.ChannelSoloPushButton->setPalette(pal); |
502 |
m_ui.ChannelSoloPushButton->setDown(bSolo); |
m_ui.ChannelSoloPushButton->setDown(bSolo); |
503 |
#else |
#else |
584 |
void ChannelStrip::midiActivityLedOn (void) |
void ChannelStrip::midiActivityLedOn (void) |
585 |
{ |
{ |
586 |
m_ui.MidiActivityLabel->setPixmap(*g_pMidiActivityLedOn); |
m_ui.MidiActivityLabel->setPixmap(*g_pMidiActivityLedOn); |
587 |
m_pMidiActivityTimer->start(200); |
m_pMidiActivityTimer->start(100); |
588 |
} |
} |
589 |
|
|
590 |
|
|