Set the PaneSwitch arrow rect based on the be_plain_font size
This commit is contained in:
parent
bedc69662e
commit
f7467fd1ff
@ -497,7 +497,7 @@ PaneSwitch::Track(BPoint point, uint32)
|
|||||||
void
|
void
|
||||||
PaneSwitch::DrawInState(PaneSwitch::State state)
|
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);
|
rect.OffsetBy(1, 1);
|
||||||
|
|
||||||
rgb_color arrowColor = state == kPressed ? kHighlightColor : kNormalColor;
|
rgb_color arrowColor = state == kPressed ? kHighlightColor : kNormalColor;
|
||||||
|
Loading…
Reference in New Issue
Block a user