Skip to content

Commit

Permalink
Fix footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Commandcracker committed May 23, 2024
1 parent 3afe540 commit c0cf2fe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/gucken/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.6"
__version__ = "0.1.7"
8 changes: 4 additions & 4 deletions src/gucken/gucken.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class GuckenApp(App):
if custom_css.exists():
CSS_PATH.append(custom_css)
BINDINGS: ClassVar[list[BindingType]] = [
Binding("q", "quit", "Quit", show=True, priority=False),
Binding("q", "quit", "Quit", show=False, priority=False),
]

def __init__(self, debug: bool, search: str):
Expand Down Expand Up @@ -328,9 +328,9 @@ def compose(self) -> ComposeResult:
id="ani_skip_chapters",
value=settings["ani_skip"]["chapters"],
)
with Footer():
with Center():
yield Label("Made by Commandcracker with [red]:heart:[/red]")
# yield Footer()
with Center(id="footer"):
yield Label("Made by Commandcracker with [red]:heart:[/red]")

@on(Input.Changed)
async def input_changed(self, event: Input.Changed):
Expand Down
7 changes: 7 additions & 0 deletions src/gucken/resources/gucken.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,11 @@ ClickableListItem {
padding-right: -2;
}

#footer {
background: $accent;
color: $text;
dock: bottom;
height: 1;
}

/*$accent: lime;*/

0 comments on commit c0cf2fe

Please sign in to comment.