Skip to content

Commit

Permalink
chore:
Browse files Browse the repository at this point in the history
- WeaselUI, mark bar not larger than 0.618*backsize(height/width)
  • Loading branch information
fxliang committed Mar 8, 2024
1 parent 01803fb commit d4e2cd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WeaselUI/WeaselPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,8 @@ bool WeaselPanel::_DrawCandidates(CDCHandle& dc, bool back) {
rect.Height() - m_style.round_corner * 2);
int width = min(rect.Width() - m_style.hilite_padding_x * 2,
rect.Width() - m_style.round_corner * 2);
width = min(width, rect.Width() * 0.618);
height = min(height, rect.Height() * 0.618);
Gdiplus::Graphics g_back(dc);
g_back.SetSmoothingMode(
Gdiplus::SmoothingMode::SmoothingModeHighQuality);
Expand Down

0 comments on commit d4e2cd8

Please sign in to comment.