Skip to content

Commit

Permalink
apply line spacing to preedit text as well
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOYoon-Tsaw committed Apr 22, 2023
1 parent 37aa363 commit 95407db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SquirrelPanel.m
Original file line number Diff line number Diff line change
Expand Up @@ -1902,6 +1902,7 @@ +(void)updateTheme:(SquirrelTheme *)theme withConfig:(SquirrelConfig *)config fo
NSMutableParagraphStyle *preeditParagraphStyle =
[[NSParagraphStyle defaultParagraphStyle] mutableCopy];
preeditParagraphStyle.paragraphSpacing = spacing / 2 + hilitedCornerRadius / 2;
preeditParagraphStyle.lineSpacing = lineSpacing;

NSMutableDictionary *attrs = [theme.attrs mutableCopy];
NSMutableDictionary *highlightedAttrs = [theme.highlightedAttrs mutableCopy];
Expand Down

0 comments on commit 95407db

Please sign in to comment.