From a1a83849348aa68021c4d2015c79454c7dd2ec1f Mon Sep 17 00:00:00 2001 From: "Robin E. R. Davies" Date: Sat, 6 Sep 2025 22:22:46 -0400 Subject: [PATCH] Control input opacity;UpdateDefaults for saved currentPreset. --- src/PiPedalModel.cpp | 1 + vite/src/pipedal/PluginControl.tsx | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PiPedalModel.cpp b/src/PiPedalModel.cpp index 429f88b..21c9eb7 100644 --- a/src/PiPedalModel.cpp +++ b/src/PiPedalModel.cpp @@ -308,6 +308,7 @@ void PiPedalModel::Load() if (storage.RestoreCurrentPreset(¤tPreset)) { this->pedalboard = currentPreset.preset_; + this->UpdateDefaults(&pedalboard); this->hasPresetChanged = currentPreset.modified_; } } diff --git a/vite/src/pipedal/PluginControl.tsx b/vite/src/pipedal/PluginControl.tsx index 5554e4e..3af35d4 100644 --- a/vite/src/pipedal/PluginControl.tsx +++ b/vite/src/pipedal/PluginControl.tsx @@ -1103,12 +1103,11 @@ const PluginControl = min: this.props.uiControl?.min_value, max: this.props.uiControl?.max_value, - opacity: this.state.editFocused ? 1 : 0, }} sx={{ // Style the input element - '& input[type=number]': { + '& input': { width: 60, opacity: this.state.editFocused ? 1 : 0, textAlign: "center", fontSize: FONT_SIZE,