Skip to content

Fold sidebar button update#14874

Merged
PavelLaptev merged 2 commits into
masterfrom
fold-sidebar-button-update
Jul 20, 2026
Merged

Fold sidebar button update#14874
PavelLaptev merged 2 commits into
masterfrom
fold-sidebar-button-update

Conversation

@PavelLaptev

Copy link
Copy Markdown
Contributor
  • simplify icons design
  • Avoids "double signaling" for the outline toggle. A Toggle gets pressed styling on top of the changing icon, which creates double signaling. In this pattern, only the icon should change, the button's styling (e.g., its background) should stay the same. While "hide sidebar" is technically a toggle, it behaves more like an action button and sits apart from other toggle-style controls.
Screen.Recording.2026-07-20.at.01.17.12.mov

As a reference for the icons I took the Obsidian app:

Screen.Recording.2026-07-20.at.00.50.36.mov

A Toggle gets pressed styling on top of the changing icon, which creates double signaling. In this pattern, only the icon should change, the button's styling (e.g., its background) should stay the same. While "hide sidebar" is technically a toggle, it behaves more like an action button and sits apart from other toggle-style controls.
@PavelLaptev

Copy link
Copy Markdown
Contributor Author

@OliverJAsh We discussed whether this button should have all the attributes of a toggle button, like changing its background when toggled. I don't think that's needed for the sidebar icon, it works fine without it.

@PavelLaptev
PavelLaptev merged commit 2d82234 into master Jul 20, 2026
36 checks passed
@PavelLaptev
PavelLaptev deleted the fold-sidebar-button-update branch July 20, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant