summaryrefslogtreecommitdiff
path: root/src/ui/widget_top_bar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget_top_bar.cpp')
-rw-r--r--src/ui/widget_top_bar.cpp5
1 files changed, 4 insertions, 1 deletions
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) {