Fix wrong tint color and improve tab labeling

This commit is contained in:
Pete Schaffner
2024-02-24 18:54:01 +01:00
parent c189f855d8
commit 447310425d
2 changed files with 4 additions and 5 deletions

View File

@ -129,13 +129,12 @@ class TerminalController: NSWindowController, NSWindowDelegate,
for (index, window) in windows.enumerated().prefix(9) { for (index, window) in windows.enumerated().prefix(9) {
let action = "goto_tab:\(index + 1)" let action = "goto_tab:\(index + 1)"
guard let equiv = ghostty.config.keyEquivalent(for: action) else {
continue
}
if let equiv = ghostty.config.keyEquivalent(for: action) {
window.keyEquivalent = "\(equiv)" window.keyEquivalent = "\(equiv)"
} }
} }
}
private func fixTabBar() { private func fixTabBar() {
// We do this to make sure that the tab bar will always re-composite. If we don't, // We do this to make sure that the tab bar will always re-composite. If we don't,

View File

@ -64,7 +64,7 @@ class TerminalToolbar: NSToolbar, NSToolbarDelegate {
button.frame = view.bounds button.frame = view.bounds
button.isBordered = false button.isBordered = false
button.contentTintColor = .systemBlue button.contentTintColor = .controlAccentColor
button.state = .on button.state = .on
button.imageScaling = .scaleProportionallyUpOrDown button.imageScaling = .scaleProportionallyUpOrDown
view.addSubview(button) view.addSubview(button)