Browse Source

Use LookAndFeel::getCrossShape() for SidePanel dismiss button

tags/2021-05-28
ed 7 years ago
parent
commit
10be540f19
1 changed files with 1 additions and 9 deletions
  1. +1
    -9
      modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.cpp

+ 1
- 9
modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.cpp View File

@@ -2787,15 +2787,7 @@ Justification LookAndFeel_V2::getSidePanelTitleJustification (SidePanel& panel)
Path LookAndFeel_V2::getSidePanelDismissButtonShape (SidePanel& panel)
{
Path p;
const float size = 10.0f;
if (panel.isPanelOnLeft())
p.addTriangle (size, 0.0f, 0.0f, size * 0.5f, size, size);
else
p.addTriangle (0.0f, 0.0f, size, size * 0.5f, 0.0f, size);
return p;
return getCrossShape (panel.getTitleBarHeight());
}
//==============================================================================


Loading…
Cancel
Save