summaryrefslogtreecommitdiff
path: root/src/ui/widget_top_bar.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-28 15:01:24 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-28 15:01:24 +1000
commitfa7fa98dc1a6d611dcc4badbfeebef307514a166 (patch)
treed6d90f32508ae97609c87de7ccc6bf6ac8e2d2f2 /src/ui/widget_top_bar.cpp
parent85379b359cc0ffac0b113fd53bd2dbac8660c9a6 (diff)
parentdb601935c6145445467692c0a4ff2b81e27cf6ce (diff)
downloadtangara-fw-fa7fa98dc1a6d611dcc4badbfeebef307514a166.tar.gz
Merge branch 'main' of git.sr.ht:~jacqueline/tangara-fw
Diffstat (limited to 'src/ui/widget_top_bar.cpp')
-rw-r--r--src/ui/widget_top_bar.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/widget_top_bar.cpp b/src/ui/widget_top_bar.cpp
index c5c3d88b..6b82b20f 100644
--- a/src/ui/widget_top_bar.cpp
+++ b/src/ui/widget_top_bar.cpp
@@ -15,6 +15,7 @@
#include "ui_fsm.hpp"
#include "widgets/lv_img.h"
#include "widgets/lv_label.h"
+#include "themes.hpp"
LV_IMG_DECLARE(battery_empty);
LV_IMG_DECLARE(battery_20);
@@ -32,10 +33,12 @@ static void back_click_cb(lv_event_t* ev) {
TopBar::TopBar(lv_obj_t* parent, const Configuration& config) {
container_ = lv_obj_create(parent);
- lv_obj_set_size(container_, lv_pct(100), 14);
+ lv_obj_set_size(container_, lv_pct(100), 18);
lv_obj_set_flex_flow(container_, LV_FLEX_FLOW_ROW);
- lv_obj_set_flex_align(container_, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_START,
+ lv_obj_set_flex_align(container_, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_CENTER,
LV_FLEX_ALIGN_END);
+
+ themes::Theme::instance()->ApplyStyle(container_, themes::Style::kTopBar);
if (config.show_back_button) {
back_button_ = lv_btn_create(container_);