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:
parent
39f6efa8c5
commit
29ce88d750
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user