Aiyad Alreshidi
Aiyad Alreshidi

Reputation: 48

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.

Upvotes: 1

Views: 673

Answers (1)

Xyanight
Xyanight

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

Related Questions