| 9 | namespace ul::menu::ui { |
| 10 | |
| 11 | ThemesMenuLayout::ThemesMenuLayout() : IMenuLayout() { |
| 12 | this->info_text = pu::ui::elm::TextBlock::New(0, 0, GetLanguageString("theme_info_text")); |
| 13 | this->info_text->SetColor(g_MenuApplication->GetTextColor()); |
| 14 | g_GlobalSettings.ApplyConfigForElement("themes_menu", "info_text", this->info_text); |
| 15 | this->Add(this->info_text); |
| 16 | |
| 17 | this->themes_menu = pu::ui::elm::Menu::New(0, 0, ThemesMenuWidth, g_MenuApplication->GetMenuBackgroundColor(), g_MenuApplication->GetMenuFocusColor(), ThemesMenuItemSize, ThemesMenuItemsToShow); |
| 18 | g_GlobalSettings.ApplyConfigForElement("themes_menu", "themes_menu", this->themes_menu); |
| 19 | this->Add(this->themes_menu); |
| 20 | } |
| 21 | |
| 22 | void ThemesMenuLayout::LoadSfx() { |
| 23 | this->theme_change_sfx = pu::audio::LoadSfx(TryGetActiveThemeResource("sound/Themes/ThemeChange.wav")); |
nothing calls this directly
no test coverage detected