diff --git a/scwx-qt/source/scwx/qt/settings/palette_settings.cpp b/scwx-qt/source/scwx/qt/settings/palette_settings.cpp index 711792c2..8edf2cf2 100644 --- a/scwx-qt/source/scwx/qt/settings/palette_settings.cpp +++ b/scwx-qt/source/scwx/qt/settings/palette_settings.cpp @@ -16,6 +16,27 @@ namespace settings static const std::string logPrefix_ = "scwx::qt::settings::palette_settings"; +static const std::array kPaletteKeys_ { + // Level 2 / Common Products + "BR", + "BV", + "SW", + "CC", + "ZDR", + "PHI2", + // Level 3 Products + "DOD", + "DSD", + "ET", + "STP", + "OHP", + "STPIN", + "OHPIN", + "PHI3", + "SRV", + "VIL", + "???"}; + static const std::unordered_map kDefaultPalettes_ { // Level 2 / Common Products {"BR", ":/res/palettes/wct/DR.pal"}, @@ -56,10 +77,9 @@ class PaletteSettingsImpl public: explicit PaletteSettingsImpl() { - for (const auto& palette : kDefaultPalettes_) + for (const auto& name : kPaletteKeys_) { - const std::string& name = palette.first; - const std::string& defaultValue = palette.second; + const std::string& defaultValue = kDefaultPalettes_.at(name); auto result = palette_.emplace(name, SettingsVariable {name});