Skip to content

Commit

Permalink
some UI tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
drlight-code committed Feb 8, 2020
1 parent b0ed23d commit 6080875
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file modified Resources/preset-folder-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions Source/LayoutHints.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ struct LayoutHints
static const int heightRow = 32;
static const int heightTextBox = 24;
static const int widthTextPort = 48;
static const int sizeIcons = 28;
static const int sizeKnob = 42;
static const int sizeGap = 4;

Expand Down
5 changes: 3 additions & 2 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,13 @@ OscsendvstAudioProcessorEditor::
resized()
{
auto heightRow = LayoutHints::heightRow;
auto sizeIcons = LayoutHints::sizeIcons;
auto area = getLocalBounds();
auto areaHeader = Rectangle<int>
(0, 0, area.getWidth(), heightRow);

buttonPreset.setBounds(areaHeader.removeFromLeft(heightRow));
buttonPresetFolder.setBounds(areaHeader.removeFromLeft(heightRow));
buttonPreset.setBounds(areaHeader.removeFromLeft(sizeIcons));
buttonPresetFolder.setBounds(areaHeader.removeFromLeft(sizeIcons));

buttonSend.setBounds(areaHeader.removeFromRight(heightRow));

Expand Down

0 comments on commit 6080875

Please sign in to comment.