fix: update crumbs when paginating

This commit is contained in:
aclist committed 2025-12-22 17:03:44 +09:00
1 parent 37dab3e83b
commit 248978f993
9 files changed
+54 -122

No files matched your search

+2
View File
@@ -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 = """
+1 -7
View File
@@ -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",
)