Skip to content

Commit

Permalink
fixed: hilited mark covered by hilited_candidate_back_color, when mar…
Browse files Browse the repository at this point in the history
…k_text empty and hilited_mark_color not transparent
  • Loading branch information
fxliang committed Aug 23, 2023
1 parent 87351ca commit 956ac2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeaselUI/WeaselPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ bool WeaselPanel::_DrawCandidates(CDCHandle &dc, bool back)
ReconfigRoundInfo(rd, m_ctx.cinfo.highlighted, m_candidateCount);
}
rect.InflateRect(m_style.hilite_padding_x, m_style.hilite_padding_y);
_HighlightText(dc, rect, m_color_scheme.hilited_candidate_back_color, m_color_scheme.hilited_candidate_shadow_color, m_style.round_corner, bkType, rd, m_color_scheme.hilited_candidate_border_color);
if (m_style.mark_text.empty() && COLORNOTTRANSPARENT(m_color_scheme.hilited_mark_color))
{
Gdiplus::Graphics g_back(dc);
Expand All @@ -650,7 +651,6 @@ bool WeaselPanel::_DrawCandidates(CDCHandle &dc, bool back)
g_back.FillPath(&mk_brush, &mk_path);
}
}
_HighlightText(dc, rect, m_color_scheme.hilited_candidate_back_color, m_color_scheme.hilited_candidate_shadow_color, m_style.round_corner, bkType, rd, m_color_scheme.hilited_candidate_border_color);
drawn = true;
}
}
Expand Down

0 comments on commit 956ac2c

Please sign in to comment.