From b8c3e5aab3b54c066e497c63507cb79332c1c04f Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 17 Aug 2024 19:29:07 -0400 Subject: [PATCH] More sensitve and 1 note drop. Move themse to sctheme extension (#1138) - The drop a file gesture now is more sensitive allowing finer control over small width regions but also allowing a 1-wide drop. Closes #1131 - .sctheme is the expension for colormaps --- src-ui/components/SCXTEditorMenus.cpp | 4 ++-- src-ui/components/multi/MappingPane.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-ui/components/SCXTEditorMenus.cpp b/src-ui/components/SCXTEditorMenus.cpp index 46794c01..4d2c4337 100644 --- a/src-ui/components/SCXTEditorMenus.cpp +++ b/src-ui/components/SCXTEditorMenus.cpp @@ -255,7 +255,7 @@ void SCXTEditor::addUIThemesMenu(juce::PopupMenu &p, bool addTitle) if (!w) return; w->fileChooser = std::make_unique( - "Save Theme", juce::File(w->browser.themeDirectory.u8string()), "*.json"); + "Save Theme", juce::File(w->browser.themeDirectory.u8string()), "*.sctheme"); w->fileChooser->launchAsync(juce::FileBrowserComponent::canSelectFiles | juce::FileBrowserComponent::saveMode | juce::FileBrowserComponent::warnAboutOverwriting, @@ -274,7 +274,7 @@ void SCXTEditor::addUIThemesMenu(juce::PopupMenu &p, bool addTitle) if (!w) return; w->fileChooser = std::make_unique( - "Load Theme", juce::File(w->browser.themeDirectory.u8string()), "*.json"); + "Load Theme", juce::File(w->browser.themeDirectory.u8string()), "*.sctheme"); w->fileChooser->launchAsync( juce::FileBrowserComponent::canSelectFiles | juce::FileBrowserComponent::openMode, [w](const juce::FileChooser &c) { diff --git a/src-ui/components/multi/MappingPane.cpp b/src-ui/components/multi/MappingPane.cpp index 79c33d6e..fa7ab017 100644 --- a/src-ui/components/multi/MappingPane.cpp +++ b/src-ui/components/multi/MappingPane.cpp @@ -1760,7 +1760,7 @@ std::array MappingZones::rootAndRangeForPosition(const juce::Point