| 199 | } |
| 200 | |
| 201 | int MainApplication::DisplayDialog(const std::string &title, const std::string &content, const std::vector<std::string> &opts, const bool use_last_opt_as_cancel, pu::sdl2::TextureHandle::Ref icon) { |
| 202 | return this->CreateShowDialog(title, content, opts, use_last_opt_as_cancel, icon, [&](pu::ui::Dialog::Ref &dialog) { |
| 203 | dialog->SetTitleColor(g_Settings.GetColorScheme().dialog_title); |
| 204 | dialog->SetContentColor(g_Settings.GetColorScheme().dialog_title); |
| 205 | dialog->SetOptionColor(g_Settings.GetColorScheme().dialog_opt); |
| 206 | dialog->SetDialogColor(g_Settings.GetColorScheme().dialog); |
| 207 | dialog->SetOverColor(g_Settings.GetColorScheme().dialog_over); |
| 208 | }); |
| 209 | } |
| 210 | |
| 211 | void MainApplication::UpdateValues() { |
| 212 | if(!g_WelcomeShown) { |
no outgoing calls
no test coverage detected