Use gradient for level view, fix height scaling (#3173)

* Use gradient for level view, fix height scaling
* Add RSSI indicators
This commit is contained in:
Synray
2026-05-12 03:48:17 -07:00
committed by GitHub
parent 66f1835232
commit 33330e4c34
2 changed files with 17 additions and 11 deletions
@@ -104,6 +104,7 @@ class GlassView : public View {
};
void on_freqchg(int64_t freq);
// Function to map the value from one range to another
int32_t map(int32_t value, int32_t fromLow, int32_t fromHigh, int32_t toLow, int32_t toHigh);
std::vector<preset_entry> presets_db{};
void manage_beep_audio();
@@ -164,6 +165,9 @@ class GlassView : public View {
uint8_t offset = 0;
uint8_t ignore_dc = 0;
// start of spectrum area
static constexpr int spectrum_y = (108 + 16);
Labels labels{
{{0, UI_POS_Y(0)}, "MIN: MAX: LNA VGA ", Theme::getInstance()->fg_light->foreground},
{{0, 1 * 16}, "RANGE: FILTER: AMP:", Theme::getInstance()->fg_light->foreground},