Skip to content

Commit

Permalink
Update master-detail browser to have better looking add/remove buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeyer committed Dec 3, 2024
1 parent d4f354f commit 2e7558c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nion/swift/EntityBrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,13 +588,11 @@ def make_shadow(item: typing.Any) -> typing.Any:
item_control_row_items = list[Declarative.UIDescription]()

if add_item_fn:
# NOTE: minimal buttons do not support min-size yet.
add_button = u.create_push_button(text=_("+"), on_clicked="add_item", style="minimal")
add_button = u.create_push_button(text=_("+"), on_clicked="add_item", style="minimal", width=24)
item_control_row_items.append(add_button)

if remove_item_fn:
# NOTE: minimal buttons do not support min-size yet.
remove_button = u.create_push_button(text=_("-"), on_clicked="remove_item", style="minimal")
remove_button = u.create_push_button(text=_("-"), on_clicked="remove_item", style="minimal", width=24)
item_control_row_items.append(remove_button)

if item_control_row_items:
Expand Down

0 comments on commit 2e7558c

Please sign in to comment.