mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Applying styles to button
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#foo {
|
||||
text-style: underline;
|
||||
background: rebeccapurple;
|
||||
}
|
||||
|
||||
#foo:hover {
|
||||
background: greenyellow;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class ButtonsApp(App[str]):
|
||||
self.exit(event.button.id)
|
||||
|
||||
|
||||
app = ButtonsApp(log_path="textual.log", log_verbosity=2)
|
||||
app = ButtonsApp(log_path="textual.log", css_path="buttons.css", log_verbosity=2)
|
||||
|
||||
if __name__ == "__main__":
|
||||
result = app.run()
|
||||
|
||||
Reference in New Issue
Block a user