feat: big text, and show community names in titles

This commit is contained in:
mdwalters
2023-06-25 00:36:32 -04:00
parent 9d42c32d33
commit bfc25e96e9

View File

@@ -66,11 +66,11 @@ class LemonadeWindow(Gtk.ApplicationWindow):
label = Gtk.Label.new()
if post["community"]["description"] == None:
label.set_markup(f"""<b>{post["community"]["title"]}</b>""")
if not "description" in post["community"]:
label.set_markup(f"""<big><b>{post["community"]["title"]}</b></big> <small>c/{post["community"]["name"]}</small>""")
else:
split = post["community"]["description"].split("\n")[0]
label.set_markup(f"""<b>{post["community"]["title"]}</b>
label.set_markup(f"""<big><b>{post["community"]["title"]}</b></big> <small>c/{post["community"]["name"]}</small>
<small>{split}</small>""")
label.props.margin_start = 5