From 46d74c4ff19672c19b308b3acc4bbca67188b293 Mon Sep 17 00:00:00 2001 From: Hayden Setlik Date: Thu, 3 Jun 2021 17:58:02 -0600 Subject: [PATCH] changed look of patch saving dialog --- Source/PatchSavingDialogBox.cpp | 6 +++++- Source/PluginEditor.cpp | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/PatchSavingDialogBox.cpp b/Source/PatchSavingDialogBox.cpp index 2462a48..91ba37e 100644 --- a/Source/PatchSavingDialogBox.cpp +++ b/Source/PatchSavingDialogBox.cpp @@ -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); diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index e9a0f81..694a007 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -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;