From 59621947410acb4f439a1e661830a3010ac0b3fa Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 12 Mar 2023 00:25:14 +0100 Subject: [PATCH] Fix: optimize color brightness --- src/polygon.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/polygon.rs b/src/polygon.rs index d36b978..b140448 100644 --- a/src/polygon.rs +++ b/src/polygon.rs @@ -36,9 +36,9 @@ fn generate_color( let r = r as u16; let g = g as u16; let b = b as u16; - if dark_mode && (r + g + b) < 100 { + if dark_mode && (r + g + b) < 300 { return false; - } else if !dark_mode && (r + g + b) > 600 { + } else if !dark_mode && (r + g + b) > 500 { return false; }