feat: add BoldLabel class

This commit is contained in:
aclist 2026-01-07 23:32:17 +09:00
parent 3c82b71f76
commit 86147db18e

View File

@ -0,0 +1,12 @@
from dzgui.util.format import embolden
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk # noqa E402
class BoldLabel(Gtk.Label):
def __init__(self, text: str):
super().__init__()
label = embolden(text)
self.set_markup(label)