mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Skeleton for border property help
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
height: 8;
|
||||
|
||||
min-width: 80;
|
||||
background: dark_blu;
|
||||
padding: 2x;
|
||||
background: dark_blue;
|
||||
padding: 2;
|
||||
border-top: solid red ;
|
||||
border-left: solid red ;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,7 @@ class BasicApp(App):
|
||||
# new_margin = old_margin + (1,1,1)
|
||||
# self.focused.styles.padding = (1, 1, 1)
|
||||
self.focused.styles.color = "banana"
|
||||
self.focused.styles.border
|
||||
|
||||
|
||||
BasicApp.run(css_file="uber.css", log="textual.log", log_verbosity=1)
|
||||
|
||||
@@ -251,4 +251,8 @@ def color_property_help_text(
|
||||
def border_property_help_text(
|
||||
property_name: str, context: StylingContext | None
|
||||
) -> HelpText:
|
||||
pass
|
||||
property_name = _contextualize_property_name(property_name, context)
|
||||
return HelpText(
|
||||
summary=f"Invalid value for [i]{property_name}[/] property",
|
||||
bullets=[*ContextSpecificBullets(inline=[Bullet("")]).get_by_context(context)],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user