mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-22 14:21:33 +03:00
Show position in the gallery in the header
This commit is contained in:
parent
b73b681610
commit
f9911987af
@ -221,6 +221,8 @@ class GalleryApp(App[None]):
|
||||
else:
|
||||
gallery_item.animate("position", value=position, final_value=position, duration=0.3)
|
||||
|
||||
self.sub_title = f"{current_index + 1}/{len(self.paths)}"
|
||||
|
||||
def action_next(self) -> None:
|
||||
"""Scroll to the next item."""
|
||||
self.path_index += 1
|
||||
|
Loading…
Reference in New Issue
Block a user