Chromium Code Reviews
DescriptionFix menu corners: the menu background was being painted as a rect when in fact,
the border is a rounded rect. In this CL, I change the menu background painting
code to paint a rounded rect instead. I also had to make the hosting widget
transparent to avoid showing black background around the rounded corners.
One more fix was needed: a selected item in a menu is indicated by painting a
highlight colored rectangle background for that item. Due to this, selecting the
topmost or the bottom-most item messes up the roundedness of the menu
background. I fix this by simply adding a padding inside the menu so that the
highlighted background of the item does not overlap the rounded corners of the
menu.
BUG=171703
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179267
Patch Set 1 #Patch Set 2 : patch #
Total comments: 2
Patch Set 3 : patch #
Total comments: 8
Patch Set 4 : patch #
Total comments: 14
Patch Set 5 : patch #Patch Set 6 : patch #Patch Set 7 : patch #Patch Set 8 : patch #
Messages
Total messages: 16 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||