Control input opacity;UpdateDefaults for saved currentPreset.

This commit is contained in:
Robin E. R. Davies
2025-09-06 22:22:46 -04:00
parent dfbcb8bedf
commit a1a8384934
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -308,6 +308,7 @@ void PiPedalModel::Load()
if (storage.RestoreCurrentPreset(&currentPreset)) if (storage.RestoreCurrentPreset(&currentPreset))
{ {
this->pedalboard = currentPreset.preset_; this->pedalboard = currentPreset.preset_;
this->UpdateDefaults(&pedalboard);
this->hasPresetChanged = currentPreset.modified_; this->hasPresetChanged = currentPreset.modified_;
} }
} }
+1 -2
View File
@@ -1103,12 +1103,11 @@ const PluginControl =
min: this.props.uiControl?.min_value, min: this.props.uiControl?.min_value,
max: this.props.uiControl?.max_value, max: this.props.uiControl?.max_value,
opacity: this.state.editFocused ? 1 : 0,
}} }}
sx={{ sx={{
// Style the input element // Style the input element
'& input[type=number]': { '& input': {
width: 60, width: 60,
opacity: this.state.editFocused ? 1 : 0, opacity: this.state.editFocused ? 1 : 0,
textAlign: "center", fontSize: FONT_SIZE, textAlign: "center", fontSize: FONT_SIZE,