mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2025-01-06 03:27:17 +03:00
boot/splash: Use custom styling for textarea
This commit is contained in:
parent
7c6414747b
commit
fed1017592
@ -151,6 +151,24 @@ class UI
|
||||
@ta.set_pos(*center(@ta, 0, @unit * 14))
|
||||
# Always present, but initially hidden
|
||||
@ta.hide(skip_animation: true)
|
||||
@ta.instance_exec do
|
||||
set_pwd_mode(true)
|
||||
get_style(LVGL::TA_STYLE::BG).dup.tap do |style|
|
||||
set_style(LVGL::TA_STYLE::BG, style)
|
||||
style.body_main_color = 0xFF000000
|
||||
style.body_grad_color = 0xFF000000
|
||||
style.body_radius = 5
|
||||
style.body_border_color = 0xFFFFFFFF
|
||||
style.body_border_width = 3
|
||||
style.body_border_opa = 255
|
||||
style.text_color = 0xFFFFFFFF
|
||||
end
|
||||
get_style(LVGL::TA_STYLE::PLACEHOLDER).dup.tap do |style|
|
||||
set_style(LVGL::TA_STYLE::PLACEHOLDER, style)
|
||||
style.text_color = 0xFFAAAAAA
|
||||
end
|
||||
end
|
||||
|
||||
LVGUI.focus_group.add_obj(@ta)
|
||||
LVGUI.focus_ring_disable()
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user