mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-11 17:19:29 +00:00
Multi screen support, with dyn alignment (#2801)
This commit is contained in:
@@ -51,10 +51,10 @@ class AudioSpectrumView : public View {
|
||||
int16_t audio_spectrum[128]{0};
|
||||
|
||||
Labels labels{
|
||||
{{6 * 8, 0 * 16}, "Hz", Theme::getInstance()->fg_light->foreground}};
|
||||
{{6 * 8, UI_POS_Y(0)}, "Hz", Theme::getInstance()->fg_light->foreground}};
|
||||
|
||||
NumberField field_frequency{
|
||||
{0 * 8, 0 * 16},
|
||||
{UI_POS_X(0), UI_POS_Y(0)},
|
||||
5,
|
||||
{0, 48000},
|
||||
48000 / 240,
|
||||
@@ -150,7 +150,7 @@ class WaterfallView : public View {
|
||||
private:
|
||||
void update_widgets_rect();
|
||||
|
||||
const Rect audio_spectrum_view_rect{0 * 8, 0 * 16, screen_width, 2 * 16 + 20};
|
||||
const Rect audio_spectrum_view_rect{UI_POS_X(0), UI_POS_Y(0), UI_POS_MAXWIDTH, 2 * 16 + 20};
|
||||
static constexpr Dim audio_spectrum_height = 16 * 2 + 20;
|
||||
static constexpr Dim scale_height = 20;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user