changing the font_name of OneLineListItem MDList
I would like to change the font_name of OneLineListItem in the MDList in kivymd. The changes will happen after loading a screen.
1 ответ
Решение
from kivy.lang import Builder
from kivymd.app import MDApp
KV = '''
OneLineListItem:
text: "[font=JetBrainsMono-ExtraBold-Italic.ttf]One-line item with avatar[/font]"
'''
class MainApp(MDApp):
def build(self):
return Builder.load_string(KV)
MainApp().run()