Skip to content

Commit

Permalink
changed look of patch saving dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
hsetlik committed Jun 3, 2021
1 parent cd05703 commit 46d74c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Source/PatchSavingDialogBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ PatchDialogBox::PatchDialogBox(PatchLoader* loader) : patchLoader(loader)

void PatchDialogBox::paint(juce::Graphics &g)
{
g.fillAll(UXPalette::darkGray2);
g.fillAll(UXPalette::nearBlack);
auto cushion = getHeight() / 14.0f;
auto lightArea = getLocalBounds().toFloat().reduced(cushion);
g.setColour(UXPalette::darkGray1);
g.fillRect(lightArea);
auto labelFont = UXPalette::square(12.0f);
g.setFont(labelFont);
g.setColour(juce::Colours::white);
Expand Down
4 changes: 2 additions & 2 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ void HexFmAudioProcessorEditor::resized()
{
int w = getWidth() / 4;
//w = 250
int h = getHeight() / 2;
saveDialog.setBounds(w, h / 3, 2 * w, h);
int h = getHeight() / 6;
saveDialog.setBounds(w, 2 * h, 2 * w, 2 * h);
//Screen dimensions are set to: 1000, 800
//overall aspect: 5/4
dY = getHeight() / 10;
Expand Down

0 comments on commit 46d74c4

Please sign in to comment.