# settings_ui: Toggle root navbar entries on double-click \(\#55526\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c958a12bcc95731bf2a005eddfc411a7f3aac535)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c958a12bcc95731bf2a005eddfc411a7f3aac535

Requested commit: c958a12bcc95731bf2a005eddfc411a7f3aac535

Commit: c958a12bcc95731bf2a005eddfc411a7f3aac535

Tree: b20f960ae69c7a9b8c5d6f387ca4cce429d50a16

Author: najeira

Committer: GitHub

## Message

```
settings_ui: Toggle root navbar entries on double-click (#55526)

Settings navbar root entries can now be expanded or collapsed by
double-clicking the row itself.

Single-click navigation is preserved, so clicking a root entry still
opens the selected Settings page. The double-click handler only toggles
on `click_count() == 2`, so triple-clicking the row does not toggle it
again.

The double-click path reuses the same toggle-and-focus behavior as the
disclosure chevron.

Testing:

- `cargo fmt --check --package settings_ui`
- `cargo check -p settings_ui`
- `cargo test -p settings_ui`
- Manually verified that:
- single-clicking a Settings navbar root entry still opens the selected
Settings page
  - double-clicking a Settings navbar root entry expands or collapses it
  - triple-clicking the row does not toggle the entry again
  - clicking the disclosure chevron still expands or collapses the entry

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Improved Settings navigation by allowing root navbar entries to expand
or collapse on double-click.
```

## Parents

- [008d54299be7a5219bac4e4dd51f11ab8bfd6197](https://git.cafe/gitcafe/zed/commit/008d54299be7a5219bac4e4dd51f11ab8bfd6197?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c958a12bcc95731bf2a005eddfc411a7f3aac535?format=markdown)
