mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-18 19:11:20 +00:00
unpack rgb correctly
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user