Rectangle<int> ProjucerLookAndFeel::getPropertyComponentContentPosition (PropertyComponent& component) { const auto textW = getTextWidthForPropertyComponent (&component); return { textW, 0, component.getWidth() - textW, component.getHeight() - 1 }; }
//======================= PropertyComponent ========================================= Rectangle<int> CabbageIDELookAndFeel::getPropertyComponentContentPosition (PropertyComponent& component) { const int textW = jmin (250, component.getWidth() / 2); return Rectangle<int> (textW, 1, component.getWidth() - textW - 1, component.getHeight() - 3); }