mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-04 21:18:28 +03:00
lvgui: Add back support for night theme
This commit is contained in:
parent
6cb9a81938
commit
5ff3bb9f88
@ -61,6 +61,10 @@ module LVGL::FFI
|
||||
extern "void lv_theme_set_current(lv_theme_t *)"
|
||||
extern "lv_theme_t * lv_theme_get_current(void)"
|
||||
|
||||
# lvgl/src/lv_themes/lv_theme_night.h
|
||||
extern "lv_theme_t * lv_theme_night_init(uint16_t, lv_font_t *)"
|
||||
extern "lv_theme_t * lv_theme_get_night(void)"
|
||||
|
||||
# lvgl/src/lv_themes/lv_theme_nixos.h
|
||||
extern "lv_theme_t * lv_theme_nixos_init(lv_font_t *)"
|
||||
extern "lv_theme_t * lv_theme_get_nixos(void)"
|
||||
|
@ -70,6 +70,13 @@ module LVGL::Hacks
|
||||
def self.default_font()
|
||||
LVGL::FFI.mn_hal_default_font
|
||||
end
|
||||
|
||||
def self.theme_night()
|
||||
LVGL::FFI.lv_theme_set_current(
|
||||
LVGL::FFI.lv_theme_night_init(205, 0)
|
||||
)
|
||||
end
|
||||
|
||||
def self.theme_nixos()
|
||||
LVGL::FFI.lv_theme_set_current(
|
||||
LVGL::FFI.lv_theme_nixos_init(0)
|
||||
|
Loading…
Reference in New Issue
Block a user