| 30 | } |
| 31 | |
| 32 | void CompactButton::resized() { |
| 33 | auto bound = getLocalBounds(); |
| 34 | const auto radius = juce::jmin(bound.getHeight(), bound.getWidth()); |
| 35 | bound = bound.withSizeKeepingCentre(radius, radius); |
| 36 | button_.setBounds(bound); |
| 37 | } |
| 38 | |
| 39 | void CompactButton::buttonDownAnimation() { |
| 40 | if (button_.getToggleState() && laf_.getDepth() < 0.1f) { |