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 db79168 commit 83bf4a1
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 @@ -635,6 +635,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_style.hilited_candidate_back_color, m_style.hilited_candidate_shadow_color, m_style.round_corner, bkType, rd, m_style.hilited_candidate_border_color);
if (m_style.mark_text.empty() && COLORNOTTRANSPARENT(m_style.hilited_mark_color))
{
BYTE r = GetRValue(m_style.hilited_mark_color);
Expand All @@ -658,7 +659,6 @@ bool WeaselPanel::_DrawCandidates(CDCHandle &dc, bool back)
g_back.FillPath(&mk_brush, &mk_path);
}
}
_HighlightText(dc, rect, m_style.hilited_candidate_back_color, m_style.hilited_candidate_shadow_color, m_style.round_corner, bkType, rd, m_style.hilited_candidate_border_color);
drawn = true;
}
}
Expand Down

0 comments on commit 83bf4a1

Please sign in to comment.