|
|
@ -124,5 +124,6 @@ class app.Settings
|
|
|
|
classList[if enable then 'add' else 'remove']('_theme-dark')
|
|
|
|
classList[if enable then 'add' else 'remove']('_theme-dark')
|
|
|
|
|
|
|
|
|
|
|
|
toggleLayout: (layout, enable) ->
|
|
|
|
toggleLayout: (layout, enable) ->
|
|
|
|
document.body.classList[if enable then 'add' else 'remove'](layout) unless layout is SIDEBAR_HIDDEN_LAYOUT
|
|
|
|
classList = document.body.classList
|
|
|
|
document.body.classList[if $.overlayScrollbarsEnabled() then 'add' else 'remove']('_overlay-scrollbars')
|
|
|
|
classList[if enable then 'add' else 'remove'](layout) unless layout is SIDEBAR_HIDDEN_LAYOUT
|
|
|
|
|
|
|
|
classList[if $.overlayScrollbarsEnabled() then 'add' else 'remove']('_overlay-scrollbars')
|
|
|
|