Skip to content

Commit

Permalink
Split layout panes have separate min size requirements.
Browse files Browse the repository at this point in the history
Removed `handle_color` kwarg from split layouts. Handles now use a glow effect.
Replace `anchor_x_pane` bool with `split_anchor` string literal.
  • Loading branch information
salt-die committed Sep 4, 2024
1 parent f96a9eb commit cfa78cf
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 139 deletions.
11 changes: 7 additions & 4 deletions examples/basic/split_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@ async def on_start(self):

split_layout = HSplitLayout(
split_row=10,
min_split_height=3,
top_min_height=5,
bottom_min_height=5,
size_hint={"height_hint": 1.0, "width_hint": 1.0},
)
top_split_layout = VSplitLayout(
split_col=10, size_hint={"height_hint": 1.0, "width_hint": 1.0}
right_min_width=10,
left_min_width=10,
size_hint={"height_hint": 1.0, "width_hint": 1.0},
)
bottom_split_layout = VSplitLayout(
split_col=10,
right_min_width=10,
left_min_width=10,
size_hint={"height_hint": 1.0, "width_hint": 1.0},
anchor_left_pane=False,
)

split_layout.top_pane.add_gadget(top_split_layout)
Expand Down
2 changes: 1 addition & 1 deletion src/batgrl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""batgrl, the badass terminal graphics library."""

__version__ = "0.37.0"
__version__ = "0.37.1"
Loading

0 comments on commit cfa78cf

Please sign in to comment.