diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-23 17:05:43 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-23 18:24:48 +0200 |
commit | a570e494bca43c30d7ec91d293051c0c818509b5 (patch) | |
tree | 4eea8c16d1434893ca51b721c5498ece65c836aa /src/game/game.cpp | |
parent | ec5c7cbccc533bacab661e991e7011584d3bb47f (diff) |
feat: add statusline mode styling
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r-- | src/game/game.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp index e969fe1..fd53841 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -80,13 +80,20 @@ void Game::on_start() statusline->set_section_length(StatusLineSection::G, statusline_section_g_length); statusline->set_section_length(StatusLineSection::H, statusline_section_h_length); + statusline->set_section_style( + StatusLineSection::A, + {.bg_color = static_cast<uint32_t>(fmt::color::green), + .bold = true, + .padding_left = 1U, + .padding_right = 1U}); + _scene->register_component(statusline, Vector2({.x = 0, .y = 1})); _status_manager->bind(statusline); _minimum_cursor_pos_y = 2; - _status_manager->set_section_title(StatusLineSection::A, " "); + _status_manager->set_section_title(StatusLineSection::A, ""); _status_manager->set_section_title(StatusLineSection::B, "X: "); _status_manager->set_section_title(StatusLineSection::C, "Y: "); _status_manager->set_section_title(StatusLineSection::D, "Paused: "); |