We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cda629 commit 6cdf29bCopy full SHA for 6cdf29b
1 file changed
packages/opencode/src/cli/cmd/tui/util/terminal.ts
@@ -19,7 +19,7 @@ function parse(color: string): RGBA | null {
19
20
function mode(background: RGBA | null): "dark" | "light" {
21
if (!background) return "dark"
22
- const luminance = (0.299 * background.r + 0.587 * background.g + 0.114 * background.b) / 255
+ const luminance = 0.299 * background.r + 0.587 * background.g + 0.114 * background.b
23
return luminance > 0.5 ? "light" : "dark"
24
}
25
0 commit comments