Skip to content

Commit

Permalink
Fix UI colors algo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhin committed Oct 25, 2023
1 parent a449b1b commit dc11840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/services/theme/generate-ui-colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ const transformFgColor = (colorFg: UIColor, colorBg: UIColor): UIColor => {
};

const transformBgColor = (colorFg: UIColor, colorBg: UIColor): UIColor => {
const { hex: hexFg, oklch } = colorFg;
const { hex: hexFg } = colorFg;
const { oklch: oklchBg } = colorBg;

const apcachDarkBg = apcach(
crToFg(hexFg, minLc),
maxChroma(oklch.c),
maxChroma(oklchBg.c),
oklchBg.h ?? 0
);

Expand Down

0 comments on commit dc11840

Please sign in to comment.