From 006dc8636fe21f00b259a412bf13acc7d0df79e8 Mon Sep 17 00:00:00 2001 From: essej Date: Sun, 24 Apr 2022 19:10:41 -0400 Subject: [PATCH] updated small window size some more. jump sliders default to false on ios --- Source/PluginEditor.cpp | 6 +++--- Source/PluginProcessor.h | 4 ++++ mobile/paulstretchplugin_ios.jucer | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index dc7981a..da70c82 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -855,12 +855,12 @@ void PaulstretchpluginAudioProcessorEditor::resized() int useh = gheight; int vpminh = jmin(useh, 140); - int tabminh = 160; + int tabminh = getHeight() > 500 ? 200 : 160; int orderminh = 38; int ordermaxh = 44; #if JUCE_IOS - tabminh = 160; + tabminh = getHeight() > 500 ? 234 : 170; orderminh = 44; ordermaxh = 50; #endif @@ -891,7 +891,7 @@ void PaulstretchpluginAudioProcessorEditor::resized() int totminh = vpminh + orderminh + tabminh + topboxh + toggleh + volh + stretchH + 18; int shortthresh = vpminh + orderminh + tabminh + topboxh + toggleh; - int veryshortthresh = tabminh + topboxh + toggleh; + int veryshortthresh = tabminh + topboxh + toggleh + 40; if (getHeight() < totminh) { // not enough vertical space, put the top items in the scrollable viewport diff --git a/Source/PluginProcessor.h b/Source/PluginProcessor.h index dedc992..fae44d4 100644 --- a/Source/PluginProcessor.h +++ b/Source/PluginProcessor.h @@ -240,7 +240,11 @@ public: bool m_save_captured_audio = true; String m_capture_location; bool m_midinote_control = false; +#if JUCE_IOS + bool m_use_jumpsliders = false; +#else bool m_use_jumpsliders = true; +#endif bool m_auto_finish_record = true; std::function m_filechoose_callback; diff --git a/mobile/paulstretchplugin_ios.jucer b/mobile/paulstretchplugin_ios.jucer index 9b10caa..16c6556 100644 --- a/mobile/paulstretchplugin_ios.jucer +++ b/mobile/paulstretchplugin_ios.jucer @@ -88,7 +88,7 @@