diff --git a/firmware/application/ui_receiver.cpp b/firmware/application/ui_receiver.cpp index 09b6540c..67026805 100644 --- a/firmware/application/ui_receiver.cpp +++ b/firmware/application/ui_receiver.cpp @@ -505,7 +505,6 @@ void ReceiverView::on_modulation_changed(ReceiverModel::Mode mode) { if( widget_content ) { add_child(widget_content.get()); - const ui::Dim header_height = 3 * 16; const ui::Rect rect { 0, header_height, parent_rect.width(), static_cast(parent_rect.height() - header_height) }; widget_content->set_parent_rect(rect); } diff --git a/firmware/application/ui_receiver.hpp b/firmware/application/ui_receiver.hpp index e75ad075..91950834 100644 --- a/firmware/application/ui_receiver.hpp +++ b/firmware/application/ui_receiver.hpp @@ -363,6 +363,8 @@ public: void focus() override; private: + static constexpr ui::Dim header_height = 2 * 16; + RSSI rssi { { 21 * 8, 0, 6 * 8, 4 }, };