afegit window_message a param

This commit is contained in:
2025-08-16 11:24:28 +02:00
parent 81d486f2d3
commit a123b3aa93
7 changed files with 225 additions and 138 deletions

View File

@@ -24,20 +24,7 @@ DefineButtons::DefineButtons()
}
// Crear la ventana de mensaje
WindowMessage::Config config;
config.bg_color = Color{20, 30, 50, 240}; // Fondo azul oscuro semi-transparente
config.border_color = Color{100, 150, 200, 255}; // Borde azul claro
config.title_color = Color{100, 150, 200, 255}; // Titulo azul claro
config.text_color = Color{220, 220, 220, 255}; // Texto gris claro
config.padding = 15.0F;
config.line_spacing = 5.0F;
config.title_separator_spacing = 15;
config.min_width = 250.0F;
config.text_safety_margin = 15.0F;
config.min_width = 100;
config.min_height = 32;
config.animation_duration = 0.3F;
WindowMessage::Config config(param.service_menu.window_message);
auto text_renderer = Resource::get()->getText("04b_25_flat");
window_message_ = std::make_unique<WindowMessage>(
text_renderer,