From 6c20eafd05025b5c65b975d10ec72005ea3966ec Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 5 Oct 2023 14:24:00 +1100 Subject: First pass at having some kind of design and theming --- src/ui/widget_top_bar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ui/widget_top_bar.cpp') diff --git a/src/ui/widget_top_bar.cpp b/src/ui/widget_top_bar.cpp index 93cd32a4..d13df9db 100644 --- a/src/ui/widget_top_bar.cpp +++ b/src/ui/widget_top_bar.cpp @@ -60,9 +60,12 @@ TopBar::TopBar(lv_obj_t* parent, } lv_obj_t* title_ = lv_label_create(container_); - lv_label_set_text(title_, config.title.c_str()); + lv_obj_set_height(title_, 17); lv_obj_set_flex_grow(title_, 1); + lv_label_set_text(title_, config.title.c_str()); + lv_label_set_long_mode(title_, LV_LABEL_LONG_DOT); + lv_obj_t* playback = lv_img_create(container_); bindings_.push_back(model.is_playing.onChangedAndNow([=](bool is_playing) { -- cgit v1.2.3