Skip to content

Commit

Permalink
Fix UI algo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhin committed Oct 30, 2023
1 parent 5f75784 commit 9470203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/services/theme/generate-ui-colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export const generateUIColors = (

const secondary = getSecondaryColor(colorBg);

if (Lc > minLc) {
if (Lc > minLc - toleranceLc) {
// Case: the current selection exceeds the minLc
// no transformation is needed
return {
Expand Down

0 comments on commit 9470203

Please sign in to comment.