feat: embolden func

This commit is contained in:
aclist committed 2026-01-01 01:58:26 +09:00
1 parent c4b918d61e
commit 72c1081b48
5 files changed
+23 -12

No files matched your search

+4 -2
View File
@@ -2,7 +2,8 @@ from typing import TYPE_CHECKING
from dzgui.const.enum import ModButton
from dzgui.const.constants import NO_EXPAND, FILL
from dzgui.util import strings
from dzgui.util.strings import mod_panel
from dzgui.util.format import embolden
import gi
gi.require_version("Gtk", "3.0")
@@ -34,7 +35,8 @@ class ModSelectionPanel(Gtk.Box):
)
self.header = Gtk.Label()
self.header.set_markup(f"<b>{strings.mod_panel.header}</b>")
text = embolden(mod_panel.header)
self.header.set_markup(text)
self.main_panel = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6)
for button in buttons: