shellchat to use blitstr2

This commit is contained in:
bunnie 2025-02-17 18:25:52 +08:00
parent 812becb9a5
commit 0e6c344f7a
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ version = "0.1.0"
com = { path = "../com" }
content-plugin-api = { path = "../content-plugin-api" } # all content canvas providers must provide this API
gam = { path = "../gam" }
blitstr2 = { path = "../../libs/blitstr2" }
graphics-server = { path = "../graphics-server" }
ime-plugin-api = { path = "../ime-plugin-api" }
ime-plugin-shell = { path = "../ime-plugin-shell" }

View file

@ -303,7 +303,7 @@ impl Repl {
Point::new(self.screensize.x, self.screensize.y / 3),
)),
);
init_tv.style = graphics_server::GlyphStyle::Bold;
init_tv.style = blitstr2::GlyphStyle::Bold;
init_tv.draw_border = false;
write!(init_tv.text, "{}", t!("shellchat.bootwait", locales::LANG)).ok();
self.gam.post_textview(&mut init_tv).expect("couldn't render wait text");