Skip to content

Commit

Permalink
Clean up some formatting in center panel
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Jan 3, 2024
1 parent 91eb836 commit 789fc55
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/gui/panels/ValentineCenterPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,16 @@ void CenterPanel::resized()
localBounds.reduce (juce::roundToInt (margin * 1.6f),
juce::roundToInt (margin * 1.3f));

const auto topRowHeight = localBounds.getHeight() * .50f;
topRowBorder =
localBounds.removeFromTop (juce::roundToInt (localBounds.getHeight() * .50f));

topRowBorder = localBounds.removeFromTop (juce::roundToInt (topRowHeight));

const auto topRowBorderHeight = topRowBorder.getHeight();
borderLineThickness = topRowBorderHeight * .01f;
borderCornerSize = topRowBorderHeight * .060f;
borderLineThickness = topRowBorder.getHeight() * .01f;
borderCornerSize = topRowBorder.getHeight() * .060f;

topRow.setBounds (topRowBorder.reduced (juce::roundToInt (margin)));

localBounds.removeFromTop (juce::roundToInt (margin * 2));

bottomRowBorder = localBounds;

bottomRow.setBounds (bottomRowBorder.reduced (juce::roundToInt (margin)));
Expand Down

0 comments on commit 789fc55

Please sign in to comment.