Rectangle<int> IntrojucerLookAndFeel::getPropertyComponentContentPosition (PropertyComponent& component) { if (component.findParentComponentOfClass<AppearanceEditor::EditorPanel>() != nullptr) return component.getLocalBounds().reduced (1).removeFromRight (component.getWidth() / 2); return LookAndFeel::getPropertyComponentContentPosition (component); }
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); }