Set the PaneSwitch arrow rect based on the be_plain_font size

This commit is contained in:
John Scipione 2013-04-27 19:28:32 -04:00
parent bedc69662e
commit f7467fd1ff

View File

@ -497,7 +497,7 @@ PaneSwitch::Track(BPoint point, uint32)
void
PaneSwitch::DrawInState(PaneSwitch::State state)
{
BRect rect(0, 0, 12, 12);
BRect rect(0, 0, be_plain_font->Size(), be_plain_font->Size());
rect.OffsetBy(1, 1);
rgb_color arrowColor = state == kPressed ? kHighlightColor : kNormalColor;