(layout: "Layout")
| 227 | from rich.tree import Tree |
| 228 | |
| 229 | def summary(layout: "Layout") -> Table: |
| 230 | icon = layout.splitter.get_tree_icon() |
| 231 | |
| 232 | table = Table.grid(padding=(0, 1, 0, 0)) |
| 233 | |
| 234 | text: RenderableType = ( |
| 235 | Pretty(layout) if layout.visible else Styled(Pretty(layout), "dim") |
| 236 | ) |
| 237 | table.add_row(icon, text) |
| 238 | _summary = table |
| 239 | return _summary |
| 240 | |
| 241 | layout = self |
| 242 | tree = Tree( |
nothing calls this directly
no test coverage detected