Merge branch 'master' into fix-caps-lock-ime

This commit is contained in:
SerKo
2022-05-05 19:55:56 +08:00
committed by GitHub
5 changed files with 156 additions and 313 deletions
+4 -3
View File
@@ -11,7 +11,8 @@ export function throwIfFalsy<T>(value: T | undefined | null): T {
}
export function isPowerlineGlyph(codepoint: number): boolean {
// This range was established via
// https://apw-bash-settings.readthedocs.io/en/latest/fontpatching.html
return 0xE000 <= codepoint && codepoint <= 0xF8FF;
// Only return true for Powerline symbols which require
// different padding and should be excluded from minimum contrast
// ratio standards
return 0xE0A0 <= codepoint && codepoint <= 0xE0D6;
}