showToggle returns true if a toggle glyph should be shown.
()
| 76 | |
| 77 | // showToggle returns true if a toggle glyph should be shown. |
| 78 | func (l sidebarLayout) showToggle() bool { |
| 79 | return l.mode == sidebarVertical || l.mode == sidebarCollapsed |
| 80 | } |
| 81 | |
| 82 | // SidebarSettings holds the sidebar display settings that should persist across session changes. |
| 83 | type SidebarSettings struct { |
no outgoing calls
no test coverage detected