Skip to content

Commit

Permalink
Update SquirrelPanel.m
Browse files Browse the repository at this point in the history
  • Loading branch information
groverlynn committed Nov 14, 2023
1 parent c827765 commit 3ee6fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SquirrelPanel.m
Original file line number Diff line number Diff line change
Expand Up @@ -2792,7 +2792,7 @@ + (void)updateTheme:(SquirrelTheme *)theme
pagingAttrs[NSVerticalGlyphFormAttributeName] = @(NO);

// CHROMATICS refinement
if (theme.translucency > 0 && ABS(backgroundColor.brightnessComponent - isDark) >= 0.6) {
if (theme.translucency > 0 && ABS(backgroundColor.brightnessComponent - isDark) <= 0.4) {
backgroundColor = inverseColor(backgroundColor);
borderColor = inverseColor(borderColor);
preeditBackgroundColor = inverseColor(preeditBackgroundColor);
Expand Down

0 comments on commit 3ee6fc8

Please sign in to comment.