mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
reduce size of chat status bar to match status bars above
This commit is contained in:
parent
8f549b3031
commit
d844c4306c
2 changed files with 5 additions and 4 deletions
|
|
@ -131,17 +131,18 @@ impl Ui {
|
|||
// setup the initial status bar contents
|
||||
let margin = Point::new(4, 4);
|
||||
let status_height = gam.glyph_height_hint(
|
||||
graphics_server::api::text::TEXTVIEW_DEFAULT_STYLE).unwrap() as u16
|
||||
+ margin.y as u16 * 2;
|
||||
GlyphStyle::Regular).unwrap() as u16;
|
||||
let mut status_tv = TextView::new(canvas,
|
||||
TextBounds::BoundingBox(Rectangle::new(
|
||||
Point::new(0, 0),
|
||||
Point::new(screensize.x, status_height as i16)
|
||||
Point::new(screensize.x, status_height as _),
|
||||
))
|
||||
);
|
||||
status_tv.style = GlyphStyle::Regular;
|
||||
status_tv.margin = margin;
|
||||
status_tv.draw_border = false;
|
||||
status_tv.clear_area = true;
|
||||
status_tv.margin = Point::new(0, 0);
|
||||
write!(status_tv, "{}", t!("chat.status.initial", locales::LANG).to_string()).ok();
|
||||
let tt = ticktimer_server::Ticktimer::new().unwrap();
|
||||
let status_last_update_ms = tt.elapsed_ms();
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ pub fn tests() {
|
|||
let mut tv = TextView::new(Gid::new([0, 0, 0, 0]),
|
||||
TextBounds::BoundingBox(anim_rect));
|
||||
tv.clip_rect = Some(clipping_area);
|
||||
tv.style = TEST_STYLE;
|
||||
tv.style = GlyphStyle::Small;
|
||||
tv.ellipsis = false;
|
||||
write!(tv, "Test of busy animation").unwrap();
|
||||
tv.insertion = None;
|
||||
|
|
|
|||
Loading…
Reference in a new issue