mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 07:02:50 +01:00
feat: embolden func
This commit is contained in:
1 parent
c4b918d61e
commit
72c1081b48
5 files changed
+23
-12
No files matched your search
+3
-2
@@ -23,6 +23,7 @@ from dzgui.const.constants import NO_EXPAND, NO_FILL
|
||||
from dzgui.const.constants import APP_NAME, APP_NAME_LOWER
|
||||
from dzgui.controllers.mc import Controller
|
||||
from dzgui.util import css, strings
|
||||
from dzgui.util.format import embolden
|
||||
|
||||
# NOTEBOOK ITEMS
|
||||
# TODO: import notebook only and add components there?
|
||||
@@ -519,8 +520,8 @@ class Grid(Gtk.Grid):
|
||||
return self.breadcrumbs.get_text()
|
||||
|
||||
def set_breadcrumbs(self, text: str) -> None:
|
||||
# TODO: embolden func
|
||||
self.breadcrumbs.set_markup(f"<b>{text}</b>")
|
||||
crumbs = embolden(text)
|
||||
self.breadcrumbs.set_markup(crumbs)
|
||||
|
||||
|
||||
class App(Gtk.Application):
|
||||
|
||||
Reference in new issue
Block a user