| 642 | } |
| 643 | |
| 644 | BrowserLayout::BrowserLayout() : pu::ui::Layout() { |
| 645 | this->cur_exp = fs::GetSdCardExplorer(); |
| 646 | this->browse_menu = pu::ui::elm::Menu::New(0, 280, pu::ui::render::ScreenWidth, g_Settings.GetColorScheme().menu_base, g_Settings.GetColorScheme().menu_base_focus, g_Settings.json_settings.ui.value().menu_item_size.value(), ComputeDefaultMenuItemCount(g_Settings.json_settings.ui.value().menu_item_size.value())); |
| 647 | g_Settings.ApplyToMenu(this->browse_menu); |
| 648 | this->empty_dir_text = pu::ui::elm::TextBlock::New(30, 630, cfg::Strings.GetString(49)); |
| 649 | this->empty_dir_text->SetHorizontalAlign(pu::ui::elm::HorizontalAlign::Center); |
| 650 | this->empty_dir_text->SetVerticalAlign(pu::ui::elm::VerticalAlign::Center); |
| 651 | this->empty_dir_text->SetColor(g_Settings.GetColorScheme().text); |
| 652 | this->Add(this->browse_menu); |
| 653 | this->Add(this->empty_dir_text); |
| 654 | |
| 655 | this->SetOnInput(std::bind(&BrowserLayout::OnInput, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4)); |
| 656 | } |
| 657 | |
| 658 | void BrowserLayout::ChangePartitionExplorer(fs::Explorer *exp, const bool update_contents) { |
| 659 | this->cur_exp = exp; |
nothing calls this directly
no test coverage detected