switched from tabs to spaces lmao

This commit is contained in:
2026-02-04 19:47:16 +11:00
parent cc2da06ac1
commit 9b32c417e9
4 changed files with 148 additions and 137 deletions

View File

@@ -10,38 +10,38 @@ from random import choice
class WelcomeScreen(Screen):
DEFAULT_CSS = """
Center {
padding: 2;
width: 100%;
Static {
text-align: center;
}
EffectLabel {
text-style: bold;
min-width: 100%;
}
#buttons {
margin-top: 1;
align: center middle;
Button {
margin: 0 2;
}
}
}
"""
DEFAULT_CSS = """
Center {
padding: 2;
width: 100%;
Static {
text-align: center;
}
EffectLabel {
text-style: bold;
min-width: 100%;
}
def compose(self) -> ComposeResult:
yield Navbar()
with Center():
with open("banner.txt", "r") as f:
yield EffectLabel(text=f.read(), effect=choice(list(effects.keys())))
yield Static("[d]Gitea, in your terminal.[/]")
#buttons {
margin-top: 1;
align: center middle;
Button {
margin: 0 2;
}
}
}
"""
with HorizontalGroup(id="buttons"):
yield Button("Explore", variant="primary", flat=True)
yield Button("another button lol", flat=True)
def compose(self) -> ComposeResult:
yield Navbar()
with Center():
with open("banner.txt", "r") as f:
yield EffectLabel(text=f.read(), effect=choice(list(effects.keys())))
yield Static("[d]Gitea, in your terminal.[/]")
with HorizontalGroup(id="buttons"):
yield Button("Explore", variant="primary", flat=True)
yield Button("another button lol", flat=True)