mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Error messages for invalid colours in border property
This commit is contained in:
@@ -12,6 +12,5 @@
|
||||
min-width: 80;
|
||||
background: dark_blue;
|
||||
padding: 2;
|
||||
border-top: solid red ;
|
||||
border-left: solid red ;
|
||||
border: solid red;
|
||||
}
|
||||
|
||||
@@ -85,10 +85,7 @@ class BasicApp(App):
|
||||
|
||||
def action_increase_margin(self):
|
||||
old_margin = self.focused.styles.margin
|
||||
# new_margin = old_margin + (1,1,1)
|
||||
# self.focused.styles.padding = (1, 1, 1)
|
||||
self.focused.styles.color = "banana"
|
||||
self.focused.styles.border
|
||||
self.focused.styles.border = [("solid", "green"), ("dashed", "s")]
|
||||
|
||||
|
||||
BasicApp.run(css_file="uber.css", log="textual.log", log_verbosity=1)
|
||||
|
||||
Reference in New Issue
Block a user