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

lvgui: Add Fonts

This commit is contained in:
Samuel Dionne-Riel 2021-06-13 17:31:29 -04:00
parent 39f6efa8c5
commit 29ce88d750

View File

@ -57,6 +57,18 @@ module LVGUI
HEADER_BAR = BLUE_DARKER
end
module Fonts
extend self
def primary(size = 24)
LVGL::Hacks.get_font("fonts/Roboto-Regular.ttf", size)
end
def secondary(size = 25)
LVGL::Hacks.get_font("fonts/overpass-bold.otf", size)
end
end
# Sets things up; back box for some ugly hacks.
def self.init(theme: :nixos)
return if @initialized