1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-04 21:18:28 +03:00

lvgui: BackButton: fix metrics

This commit is contained in:
Samuel Dionne-Riel 2021-06-09 17:01:51 -04:00
parent 898be48fba
commit 73c197bf1a

View File

@ -8,10 +8,8 @@ class LVGUI::BackButton < LVGUI::Button
@holder.set_fit2(LVGL::FIT::FILL, LVGL::FIT::TIGHT)
@holder.set_style(LVGL::CONT_STYLE::MAIN, LVGL::LVStyle::STYLE_TRANSP.dup)
style = @holder.get_style(LVGL::CONT_STYLE::MAIN)
style.body_padding_top = LVGUI.pixel_scale(32)
style.body_padding_left = 0
style.body_padding_right = 0
style.body_padding_bottom = style.body_padding_top
super(@holder)