diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-10-05 14:24:00 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-10-05 14:24:00 +1100 |
| commit | 6c20eafd05025b5c65b975d10ec72005ea3966ec (patch) | |
| tree | ab36fb60ed6be665f9664faf0fd7af73263e3d5d /src/ui/widget_top_bar.cpp | |
| parent | bf1fc5a2a0f408a8d8a54d4329257a10d077c4fb (diff) | |
| download | tangara-fw-6c20eafd05025b5c65b975d10ec72005ea3966ec.tar.gz | |
First pass at having some kind of design and theming
Diffstat (limited to 'src/ui/widget_top_bar.cpp')
| -rw-r--r-- | src/ui/widget_top_bar.cpp | 5 |
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) { |
