graphic eq + cleanup

This commit is contained in:
Boof2015
2026-07-02 23:12:58 -04:00
parent 0003c7d778
commit 9ce825b673
474 changed files with 765 additions and 187 deletions
+9
View File
@@ -14,6 +14,14 @@ interface PresetSheetProps {
onClose: () => void;
}
/**
* Leading row icon telling a custom preset's editor mode apart at a glance.
* Built-ins get no icon — they're mode-agnostic and apply in the active mode.
*/
function modeIcon(preset: EQPreset): 'options-outline' | 'analytics-outline' {
return preset.mode === 'graphic' ? 'options-outline' : 'analytics-outline';
}
/** Preset hub: pick a built-in or custom preset, delete custom ones, or save a new one. */
export function PresetSheet({
presets,
@@ -55,6 +63,7 @@ export function PresetSheet({
<EqSheetItem
key={p.id}
label={p.name}
icon={modeIcon(p)}
selected={p.id === activePresetId}
onPress={() => {
onApply(p.id);