redid logic on the shellview selection

fixed the colours being unreadable sometimes on title bar of the shellview
luminance ratio func
forcedismissdisconnectedalert is now in handler
This commit is contained in:
neon443 committed 2025-09-03 20:39:55 +01:00
1 parent a71c994103
commit 7e0a02fad3
7 files changed
+66 -51

No files matched your search

+8
View File
@@ -80,4 +80,12 @@ extension SwiftTerm.Color {
let b = Double(blue)/65535
return (0.2126*r + 0.7152*g + 0.0722*b)
}
func luminanceRatio(with other: SwiftTerm.Color) -> Double {
if self.luminance > other.luminance {
return (self.luminance + 0.05) / (other.luminance + 0.05)
} else {
return (other.luminance + 0.05) / (self.luminance + 0.05)
}
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.