diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-27 16:39:09 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-27 16:39:28 +0100 |
| commit | f81ff82f2a07f87f6eb4f43de49ede64215519e5 (patch) | |
| tree | 67b4f9ef1c94184e2e1a9878c6feed8dc30ebcb3 /src/Costasdev.Busurbano.Backend/Helpers | |
| parent | ef2df90ffb195edcddd701511dc5953c7baa63af (diff) | |
Refactor route planner to use new GraphQL backend
Diffstat (limited to 'src/Costasdev.Busurbano.Backend/Helpers')
| -rw-r--r-- | src/Costasdev.Busurbano.Backend/Helpers/ContrastHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Costasdev.Busurbano.Backend/Helpers/ContrastHelper.cs b/src/Costasdev.Busurbano.Backend/Helpers/ContrastHelper.cs index e48660b..f9fd5f2 100644 --- a/src/Costasdev.Busurbano.Backend/Helpers/ContrastHelper.cs +++ b/src/Costasdev.Busurbano.Backend/Helpers/ContrastHelper.cs @@ -25,7 +25,7 @@ public static class ContrastHelper double contrastWithWhite = (1.0 + 0.05) / (luminance + 0.05); double contrastWithBlack = (luminance + 0.05) / 0.05; - if (contrastWithWhite > 3) + if (contrastWithWhite >= 2.5) { return "#FFFFFF"; } |
