New value dial color schemes. apply to File and AM demod plugins

pull/60/head
f4exb 2017-05-16 16:21:59 +02:00
rodzic c9368a4dc0
commit 747f400a78
3 zmienionych plików z 15 dodań i 15 usunięć

Wyświetl plik

@ -361,7 +361,7 @@ AMModGUI::AMModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* pare
connect(&m_pluginAPI->getMainWindow()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick()));
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::ReverseGold));
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
//m_channelMarker = new ChannelMarker(this);
m_channelMarker.setColor(Qt::yellow);

Wyświetl plik

@ -50,10 +50,10 @@ FileSinkGui::FileSinkGui(DeviceSinkAPI *deviceAPI, QWidget* parent) :
{
ui->setupUi(this);
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::ReverseGold));
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
ui->centerFrequency->setValueRange(7, 0, pow(10,7));
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::ReverseGreenYellow));
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
ui->sampleRate->setValueRange(7, 32000U, 9000000U);
ui->fileNameText->setText(m_fileName);

Wyświetl plik

@ -105,7 +105,7 @@ ColorMapper::ColorMapper(Theme theme) :
m_boundaryColor = QColor(0x46, 0x66, 0x20); // 69% saturation 40% brightness
m_boundaryAlphaColor = QColor(0x8c, 0xff, 0x00, 0x20); // Base with alpha
break;
case GrayGreenYellow:
case GrayGreenYellow: // Base 87 (=120-33) degrees hue 140,255,0
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(0.0, QColor(33, 33, 33))); // 59% darkness
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(0.1, QColor(50, 50, 50))); // 37% darkness
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(0.2, QColor(67, 67, 67))); // 18% darkness
@ -113,13 +113,13 @@ ColorMapper::ColorMapper(Theme theme) :
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(0.8, QColor(60, 60, 60))); // 25% darkness
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(0.9, QColor(50, 50, 50))); // 37% darkness
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(1.0, QColor(33, 33, 33))); // 59% darkness
m_foregroundColor = QColor(0x8c, 0xff, 0x00); // Base 87 (=120-33) degrees hue
m_secondaryForegroundColor = QColor(0xc6, 0xff, 0x80); // 50% saturation
m_highlightColor = QColor(0xa9, 0xff, 0x40, 0x80); // 75% saturation
m_boundaryColor = QColor(0x46, 0x66, 0x20); // 69% saturation 40% brightness
m_boundaryAlphaColor = QColor(0x8c, 0xff, 0x00, 0x20); // Base with alpha
m_foregroundColor = QColor(99, 128, 64); // 50% saturation 50% brightbess - shadow face color
m_secondaryForegroundColor = QColor(198, 255, 128); // 50% saturation - front face color
m_highlightColor = QColor(169, 255, 64, 128); // 75% saturation - digit highlight overlay
m_boundaryColor = QColor(79, 115, 34); // 70% saturation 45% brightness - inter wheel boundary
m_boundaryAlphaColor = QColor(140, 255, 0, 32); // Base with alpha
break;
case GrayGold:
case GrayGold: // Base 33 degrees hue 255,139,0
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(0.0, QColor(33, 33, 33))); // 59% darkness
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(0.1, QColor(50, 50, 50))); // 37% darkness
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(0.2, QColor(67, 67, 67))); // 18% darkness
@ -127,11 +127,11 @@ ColorMapper::ColorMapper(Theme theme) :
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(0.8, QColor(60, 60, 60))); // 25% darkness
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(0.9, QColor(50, 50, 50))); // 37% darkness
m_dialBackgroundcolorMap.push_back(std::pair<float, QColor>(1.0, QColor(33, 33, 33))); // 59% darkness
m_foregroundColor = QColor(0xff, 0x8b, 0x00); // Base 33 degrees hue
m_secondaryForegroundColor = QColor(0xff, 0xc5, 0x80); // 50% saturation
m_highlightColor = QColor(0xbf, 0x69, 0x00, 0x80); // 75% saturation
m_boundaryColor = QColor(0x66, 0x38, 0x20); // 69% saturation 40% brightness
m_boundaryAlphaColor = QColor(0xff, 0x8b, 0x00, 0x20); // Base with alpha
m_foregroundColor = QColor(128, 98, 64); // 50% saturation 50% brightbess - shadow face color
m_secondaryForegroundColor = QColor(255, 197, 128); // 50% saturation - front face color
m_highlightColor = QColor(255, 169, 64, 128); // 75% saturation - digit highlight overlay
m_boundaryColor = QColor(115, 79, 34); // 70% saturation 45% brightness - inter wheel boundary
m_boundaryAlphaColor = QColor(255, 39, 0, 32); // Base with alpha
break;
case Normal:
default: