diff --git a/macos/Sources/Ghostty/SurfaceView.swift b/macos/Sources/Ghostty/SurfaceView.swift index f013d908a..29f0dcf73 100644 --- a/macos/Sources/Ghostty/SurfaceView.swift +++ b/macos/Sources/Ghostty/SurfaceView.swift @@ -68,9 +68,11 @@ extension Ghostty { var rgb: UInt32 = 16777215 // white default let key = "unfocused-split-fill" _ = ghostty_config_get(ghostty.config, &rgb, key, UInt(key.count)) - let red = Double((rgb >> 16) & 0xff) + + let red = Double(rgb & 0xff) let green = Double((rgb >> 8) & 0xff) - let blue = Double(rgb & 0xff) + let blue = Double((rgb >> 16) & 0xff) + return Color( red: red / 255, green: green / 255,