mirror of
https://github.com/atom/atom.git
synced 2026-02-06 20:55:33 -05:00
Add custom-title-bar class
So themes/packages can adapt to the custom title-bar
This commit is contained in:
@@ -694,6 +694,7 @@ class AtomEnvironment extends Model
|
||||
|
||||
if process.platform is 'darwin' and @config.get('core.useCustomTitleBar')
|
||||
@workspace.addHeaderPanel({item: new TitleBar({@workspace, @themes, @applicationDelegate})})
|
||||
@document.body.classList.add('custom-title-bar')
|
||||
|
||||
@document.body.appendChild(@views.getView(@workspace))
|
||||
@backgroundStylesheet?.remove()
|
||||
|
||||
Reference in New Issue
Block a user