This commit is contained in:
griffi-gh 2024-04-25 13:41:50 +02:00
parent 09af18dda0
commit caa7cf9aeb
2 changed files with 2 additions and 1 deletions

View file

@ -49,6 +49,6 @@ pub fn init_chat_manager(
storages: AllStoragesView, storages: AllStoragesView,
) { ) {
let mut chat_manager = ChatManager::default(); let mut chat_manager = ChatManager::default();
chat_manager.add_system_message("Welcome to Kubi!".to_string()); chat_manager.add_system_message("Welcome to Kubi! Chat messages will appear here".to_string());
storages.add_unique(chat_manager); storages.add_unique(chat_manager);
} }

View file

@ -28,6 +28,7 @@ pub fn render_chat(
}; };
Container::default() Container::default()
.with_background((0., 0., 0., 0.5)) .with_background((0., 0., 0., 0.5))
.with_padding((5., 2.))
.with_children(|ui| { .with_children(|ui| {
Text::new(text) Text::new(text)
.add_child(ui) .add_child(ui)