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

@ -2,6 +2,7 @@
#include "./screen.hpp"
#include "./chat_gui/theme.hpp"
#include "./chat_gui/file_selector.hpp"
#include <vector>
@ -14,6 +15,7 @@ extern "C" {
struct StartScreen final : public Screen {
SDL_Renderer* _renderer;
Theme& _theme;
FileSelector _fss;
bool _new_save {false};
@ -26,7 +28,7 @@ struct StartScreen final : public Screen {
std::vector<std::string> queued_plugin_paths;
StartScreen(void) = delete;
StartScreen(SDL_Renderer* renderer);
StartScreen(SDL_Renderer* renderer, Theme& theme);
~StartScreen(void) = default;
// return nullptr if not next