mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-05 11:09:13 -04:00
NFM Demod: use different color scheme for the signal meter bar
This commit is contained in:
parent
0de8d916c0
commit
e6667c88eb
@ -291,7 +291,7 @@ NFMDemodGUI::NFMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidg
|
||||
}
|
||||
|
||||
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::ReverseGold));
|
||||
ui->channelPowerMeter->setColorTheme(LevelMeterSignalDB::ColorGreenYellow);
|
||||
ui->channelPowerMeter->setColorTheme(LevelMeterSignalDB::ColorGreenAndBlue);
|
||||
|
||||
m_channelizer = new DownChannelizer(m_nfmDemod);
|
||||
m_threadedChannelizer = new ThreadedBasebandSampleSink(m_channelizer, this);
|
||||
|
@ -237,19 +237,22 @@ void LevelMeterVU::render(QPainter *painter)
|
||||
|
||||
// ====================================================================
|
||||
|
||||
const QColor LevelMeterSignalDB::m_avgColor[2] = {
|
||||
const QColor LevelMeterSignalDB::m_avgColor[3] = {
|
||||
QColor(0xff, 0x8b, 0x00, 128),
|
||||
QColor(0x8c, 0xff, 0x00, 128)
|
||||
QColor(0x8c, 0xff, 0x00, 128),
|
||||
QColor(0x8c, 0xff, 0x00, 128)
|
||||
};
|
||||
|
||||
const QColor LevelMeterSignalDB::m_decayedPeakColor[2] = {
|
||||
const QColor LevelMeterSignalDB::m_decayedPeakColor[3] = {
|
||||
QColor(0x97, 0x54, 0x00, 128),
|
||||
QColor(0x53, 0x96, 0x00, 128)
|
||||
QColor(0x53, 0x96, 0x00, 128),
|
||||
QColor(0x00, 0x96, 0x53, 128)
|
||||
};
|
||||
|
||||
const QColor LevelMeterSignalDB::m_peakColor[2] = {
|
||||
const QColor LevelMeterSignalDB::m_peakColor[3] = {
|
||||
Qt::red,
|
||||
Qt::green
|
||||
Qt::green,
|
||||
Qt::green
|
||||
};
|
||||
|
||||
LevelMeterSignalDB::LevelMeterSignalDB(QWidget *parent) :
|
||||
|
@ -147,7 +147,8 @@ public:
|
||||
typedef enum
|
||||
{
|
||||
ColorGold,
|
||||
ColorGreenYellow
|
||||
ColorGreenYellow,
|
||||
ColorGreenAndBlue
|
||||
} ColorTheme;
|
||||
|
||||
LevelMeterSignalDB(QWidget *parent = 0);
|
||||
@ -155,9 +156,9 @@ public:
|
||||
|
||||
void setColorTheme(ColorTheme colorTheme) { m_colorTheme = colorTheme; }
|
||||
|
||||
static const QColor m_avgColor[2];
|
||||
static const QColor m_decayedPeakColor[2];
|
||||
static const QColor m_peakColor[2];
|
||||
static const QColor m_avgColor[3];
|
||||
static const QColor m_decayedPeakColor[3];
|
||||
static const QColor m_peakColor[3];
|
||||
|
||||
protected:
|
||||
virtual void render(QPainter *painter);
|
||||
|
Loading…
Reference in New Issue
Block a user