Skip to content

Commit

Permalink
fix label blur when using dark font color (sync cocos#3949)
Browse files Browse the repository at this point in the history
  • Loading branch information
jareguo committed Oct 10, 2020
1 parent 10a6ef6 commit 9e6153b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/ui/assembler/label/letter-font.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class FontLetterDefinition {
public xAdvance = 0;
}

const _backgroundStyle = 'rgba(255, 255, 255, 0.005)';
const _backgroundStyle = `rgba(255, 255, 255, ${(1 / 255).toFixed(3)})`;

class LetterTexture {
public image: ImageAsset | null = null;
Expand Down

0 comments on commit 9e6153b

Please sign in to comment.