/[svn]/qsampler/trunk/src/qsamplerChannelStrip.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerChannelStrip.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2038 by capela, Thu Jan 7 18:42:26 2010 UTC revision 2068 by capela, Sun Mar 14 16:35:48 2010 UTC
# Line 489  bool ChannelStrip::updateChannelInfo (vo Line 489  bool ChannelStrip::updateChannelInfo (vo
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

Legend:
Removed from v.2038  
changed lines
  Added in v.2068

  ViewVC Help
Powered by ViewVC