feat(ui/macos): shift buffer content below display notch on modern MacBook Pro models

Add a new vendored custom package called tab-bar-notch, which resizes
the tab-bar height to match that of the physical camera notch on modern
MacBook Pro models.
This commit is contained in:
2023-11-12 16:21:18 +00:00
parent d54f89af23
commit fcc2321745
2 changed files with 180 additions and 1 deletions

View File

@@ -8,6 +8,10 @@
(require 'siren-workspace-map)
(use-package tab-bar-notch
:straight (:type built-in) ;; from vendor directory
)
(use-package tab-bar
:straight (:type built-in)
@@ -55,7 +59,10 @@
:custom
(tab-bar-close-button-show nil)
(tab-bar-format '(tab-bar-format-tabs-groups tab-bar-separator))
(tab-bar-format `(tab-bar-format-tabs-groups
,(if (eq system-type 'darwin)
'tab-bar-notch-spacer
'tab-bar-separator)))
(tab-bar-history-limit 25)
(tab-bar-new-tab-choice "*scratch*")
(tab-bar-show 1)