Reputation: 48
I would like to change the font_name of OneLineListItem in the MDList in kivymd. The changes will happen after loading a screen.
Upvotes: 1
Views: 673
Reputation: 1325
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()
Upvotes: 4