macos: plumb through the split divider color

This commit is contained in:
Mitchell Hashimoto
2024-01-29 21:32:10 -08:00
parent 375df57155
commit 18dfb642f5
5 changed files with 31 additions and 13 deletions

View File

@@ -280,6 +280,8 @@ extension Ghostty {
/// This represents a split view that is in the horizontal or vertical split state.
private struct TerminalSplitContainer: View {
@EnvironmentObject var ghostty: Ghostty.App
let neighbors: SplitNode.Neighbors
@Binding var node: SplitNode?
@StateObject var container: SplitNode.Container
@@ -288,6 +290,7 @@ extension Ghostty {
SplitView(
container.direction,
$container.split,
dividerColor: ghostty.config.splitDividerColor,
resizeIncrements: .init(width: 1, height: 1),
resizePublisher: container.resizeEvent,
left: {