Set a default theme if theme property is not set

This means that the terminal is no longer blank if no theme has been
set.
This commit is contained in:
Leroy Hopson 2020-11-29 15:22:34 +07:00 committed by Leroy Hopson
parent 8b25be74c0
commit 3e177b781e
8 changed files with 109 additions and 41 deletions

View file

@ -41,10 +41,11 @@ namespace godot
Vector2 cell_size;
std::map<int, Color> palette = {};
std::map<String, Ref<Font>> fontmap = {};
void update_size();
void update_color_palette();
void update_theme();
std::pair<Color, Color> get_cell_colors(int row, int col);
void draw_background(int row, int col, Color bgcol);
void draw_foreground(int row, int col, Color fgcol);
@ -74,4 +75,4 @@ namespace godot
};
} // namespace godot
#endif // TERMINAL_H
#endif // TERMINAL_H