Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RimeWithWeasel.cpp #1007

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions RimeWithWeasel/RimeWithWeasel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,8 @@ static void _UpdateUIStyle(RimeConfig* config, UI* ui, bool initialize)
style.candidate_spacing = max(style.candidate_spacing, style.hilite_padding_x * 2); // horizontal, if hilite_padding_x over candidate spacing, increase candidate spacing
}
// hilite_padding_x vs hilite_spacing
style.hilite_spacing = max(style.hilite_spacing, style.hilite_padding_x);
if(!style.inline_preedit)
style.hilite_spacing = max(style.hilite_spacing, style.hilite_padding_x);
}
else // LAYOUT_VERTICAL_TEXT
{
Expand All @@ -967,7 +968,8 @@ static void _UpdateUIStyle(RimeConfig* config, UI* ui, bool initialize)
if (style.vertical_text_with_wrap)
style.candidate_spacing = max(style.candidate_spacing, style.hilite_padding_y * 2);
// hilite_padding_y vs hilite_spacing
style.hilite_spacing = max(style.hilite_spacing, style.hilite_padding_y);
if(!style.inline_preedit)
style.hilite_spacing = max(style.hilite_spacing, style.hilite_padding_y);
}
// fix padding and margin settings
int scale = style.margin_x < 0 ? -1 : 1;
Expand Down