mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-07-05 13:15:32 +02:00
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:
parent
8b25be74c0
commit
3e177b781e
8 changed files with 109 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue