mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-11 09:04:01 +03:00
lvgui: Use correct fonts for status bar
This commit is contained in:
parent
3d032921fa
commit
aae04ccd45
@ -9,8 +9,8 @@ class LVGUI::StatusBar < LVGUI::Widget
|
||||
style.body_main_color = LVGUI::Colors::STATUS_BAR
|
||||
style.body_grad_color = style.body_main_color
|
||||
style.body_border_width = 0
|
||||
style.body_padding_bottom = style.body_padding_top
|
||||
style.body_padding_top = 0
|
||||
style.body_padding_bottom = style.body_padding_top
|
||||
style.body_radius = 0
|
||||
|
||||
set_fit2(LVGL::FIT::FILL, LVGL::FIT::NONE)
|
||||
@ -28,10 +28,22 @@ class LVGUI::StatusBar < LVGUI::Widget
|
||||
|
||||
# [00:00 ]
|
||||
@clock = LVGUI::Clock.new(self)
|
||||
@clock.instance_exec do
|
||||
style = get_style(LVGL::LABEL_STYLE::MAIN).dup()
|
||||
set_style(LVGL::LABEL_STYLE::MAIN, style)
|
||||
style.text_font = LVGUI::Fonts.primary(19)
|
||||
set_height(LVGUI.point_scale(19))
|
||||
end
|
||||
@clock.set_width(child_width)
|
||||
|
||||
# [ 69%]
|
||||
@battery = LVGUI::Battery.new(self)
|
||||
@battery.set_width(child_width)
|
||||
@battery.instance_exec do
|
||||
style = get_style(LVGL::LABEL_STYLE::MAIN).dup()
|
||||
set_style(LVGL::LABEL_STYLE::MAIN, style)
|
||||
style.text_font = LVGUI::Fonts.primary(19)
|
||||
set_height(LVGUI.point_scale(19))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user