mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
16 lines
343 B
Python
16 lines
343 B
Python
|
|
from ..component import Component, Style
|
||
|
|
from ..container import Row
|
||
|
|
|
||
|
|
|
||
|
|
class Title(Component):
|
||
|
|
def __init__(self, text: str, color: str = "#000"):
|
||
|
|
self.text = text
|
||
|
|
self.color = color
|
||
|
|
|
||
|
|
def build(self):
|
||
|
|
row = Row()
|
||
|
|
style = Style(font_size="36px", color=self.color)
|
||
|
|
row.set_style(style)
|
||
|
|
|
||
|
|
# def
|