mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
fix: update crumbs when paginating
This commit is contained in:
1 parent
37dab3e83b
commit
248978f993
9 files changed
+54
-122
No files matched your search
@@ -11,6 +11,8 @@ def add_class(widget: Gtk.Widget, label: str) -> None:
|
||||
context = widget.get_style_context()
|
||||
context.add_class(label)
|
||||
|
||||
# TODO: def remove_class()
|
||||
|
||||
def load_css() -> None:
|
||||
# TODO: consider storing this in a data file
|
||||
css = """
|
||||
|
||||
@@ -255,13 +255,10 @@ class Button:
|
||||
@dataclass(slots=True, frozen=True)
|
||||
class Crumbs:
|
||||
changelog: str
|
||||
history: str
|
||||
keys: str
|
||||
lan: str
|
||||
log: str
|
||||
_help: str
|
||||
mods: str
|
||||
my_servers: str
|
||||
options: str
|
||||
servers: str
|
||||
thanks: str
|
||||
@@ -441,15 +438,12 @@ buttons = Button(
|
||||
|
||||
crumbs = Crumbs(
|
||||
changelog="Help > Changelog",
|
||||
history="Main menu > Recent servers",
|
||||
keys="Keybindings",
|
||||
lan="Main menu > Local servers",
|
||||
log="Help > Debug log",
|
||||
_help="Help",
|
||||
mods="Mods",
|
||||
my_servers="Main menu > Saved servers",
|
||||
options="Options",
|
||||
servers="Servers",
|
||||
servers="Servers > Server browser",
|
||||
thanks="Help > Special thanks",
|
||||
developers="Options > Developers",
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user