refactor big contact

This commit is contained in:
2024-04-21 14:17:50 +02:00
parent 858b9dfcfa
commit b88fffd959
13 changed files with 399 additions and 171 deletions

View File

@ -9,7 +9,7 @@
#include <memory>
#include <filesystem>
StartScreen::StartScreen(SDL_Renderer* renderer) : _renderer(renderer) {
StartScreen::StartScreen(SDL_Renderer* renderer, Theme& theme) : _renderer(renderer), _theme(theme) {
}
Screen* StartScreen::render(float, bool&) {
@ -143,7 +143,7 @@ Screen* StartScreen::render(float, bool&) {
}
} else {
if (ImGui::Button("load", {60, 25})) {
auto new_screen = std::make_unique<MainScreen>(_renderer, _tox_profile_path, _password, _user_name, queued_plugin_paths);
auto new_screen = std::make_unique<MainScreen>(_renderer, _theme, _tox_profile_path, _password, _user_name, queued_plugin_paths);
return new_screen.release();
}
}