From a570e494bca43c30d7ec91d293051c0c818509b5 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 23 Jun 2022 17:05:43 +0200 Subject: feat: add statusline mode styling --- src/game/game.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/game/game.cpp') 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(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: "); -- cgit v1.2.3-18-g5258