refactor: remove waveform color setting to preserve dynamic coloring
- Removed waveformColor from UISettings interface - Removed waveform color picker from Interface settings tab - Preserves dynamic per-track waveform coloring system - Cleaner settings UI with one less option 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -375,29 +375,6 @@ export function GlobalSettingsDialog({
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Waveform Color */}
|
|
||||||
<div className="space-y-2">
|
|
||||||
<label className="text-sm font-medium">Waveform Color</label>
|
|
||||||
<div className="flex gap-2 items-center">
|
|
||||||
<input
|
|
||||||
type="color"
|
|
||||||
value={settings.ui.waveformColor}
|
|
||||||
onChange={(e) => onUISettingsChange({ waveformColor: e.target.value })}
|
|
||||||
className="h-10 w-20 rounded border border-border cursor-pointer"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
value={settings.ui.waveformColor}
|
|
||||||
onChange={(e) => onUISettingsChange({ waveformColor: e.target.value })}
|
|
||||||
className="flex-1 px-3 py-2 bg-background border border-border rounded text-sm font-mono"
|
|
||||||
placeholder="#3b82f6"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<p className="text-xs text-muted-foreground">
|
|
||||||
Default color for new track waveforms.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Font Size */}
|
{/* Font Size */}
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<label className="text-sm font-medium">Font Size</label>
|
<label className="text-sm font-medium">Font Size</label>
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ export interface AudioSettings {
|
|||||||
|
|
||||||
export interface UISettings {
|
export interface UISettings {
|
||||||
theme: 'dark' | 'light' | 'auto';
|
theme: 'dark' | 'light' | 'auto';
|
||||||
waveformColor: string;
|
|
||||||
fontSize: 'small' | 'medium' | 'large';
|
fontSize: 'small' | 'medium' | 'large';
|
||||||
defaultTrackHeight: number; // 120-400px
|
defaultTrackHeight: number; // 120-400px
|
||||||
}
|
}
|
||||||
@@ -45,7 +44,6 @@ const DEFAULT_SETTINGS: Settings = {
|
|||||||
},
|
},
|
||||||
ui: {
|
ui: {
|
||||||
theme: 'dark',
|
theme: 'dark',
|
||||||
waveformColor: '#3b82f6', // blue-500
|
|
||||||
fontSize: 'medium',
|
fontSize: 'medium',
|
||||||
defaultTrackHeight: 400,
|
defaultTrackHeight: 400,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user