starting with search_screen
- optimized partitions
This commit is contained in:
34
src/ui/screens/search_screen.cpp
Normal file
34
src/ui/screens/search_screen.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
//----------------------------------------------------------------------------
|
||||
// OS-Railway - Remote Control
|
||||
// Copyright (C) 2023 Peter Siegmund (https://mars3142.dev)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
#include "search_screen.h"
|
||||
|
||||
#include "../widgets/status_bar_widget.h"
|
||||
|
||||
SearchScreen::SearchScreen()
|
||||
{
|
||||
screen = lv_obj_create(NULL);
|
||||
lv_obj_clear_flag(screen, LV_OBJ_FLAG_SCROLLABLE);
|
||||
lv_obj_set_style_bg_color(screen, lv_color_make(0x78, 0x94, 0xa7), 0);
|
||||
}
|
||||
|
||||
void SearchScreen::show()
|
||||
{
|
||||
status_bar_widget_init();
|
||||
lv_disp_load_scr(this->screen);
|
||||
}
|
Reference in New Issue
Block a user