mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
🎨
This commit is contained in:
@@ -9,12 +9,13 @@ class TitleBar
|
||||
@element.appendChild(@titleElement)
|
||||
|
||||
@workspace.onDidChangeActivePaneItem => @updateTitle()
|
||||
@themes.onDidChangeActiveThemes => @setSheetOffset()
|
||||
@themes.onDidChangeActiveThemes => @updateWindowSheetOffset()
|
||||
|
||||
@updateTitle()
|
||||
|
||||
setSheetOffset: ->
|
||||
@applicationDelegate.getCurrentWindow().setSheetOffset(@element.offsetHeight)
|
||||
@updateWindowSheetOffset()
|
||||
|
||||
updateTitle: ->
|
||||
@titleElement.textContent = document.title
|
||||
|
||||
updateWindowSheetOffset: ->
|
||||
@applicationDelegate.getCurrentWindow().setSheetOffset(@element.offsetHeight)
|
||||
|
||||
Reference in New Issue
Block a user