mirror of
https://github.com/9x/sheetmusictrainer.git
synced 2026-09-02 09:34:33 +02:00
Ear training mode
This commit is contained in:
@@ -23,6 +23,7 @@ export interface AppSettings {
|
||||
showTuningMeter: boolean;
|
||||
rhythm: RhythmSettings;
|
||||
zenMode: boolean;
|
||||
gameMode: 'sight_reading' | 'ear_training';
|
||||
}
|
||||
|
||||
interface ControlsProps {
|
||||
@@ -151,6 +152,28 @@ export const Controls: React.FC<ControlsProps> = ({ settings, onUpdateSettings }
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div className="control-group" style={{ borderTop: '1px solid rgba(255,255,255,0.1)', paddingTop: '12px', marginTop: '12px', width: '100%' }}>
|
||||
<label className="control-label" style={{ marginBottom: '8px' }}>
|
||||
<span>Game Mode</span>
|
||||
</label>
|
||||
<div style={{ display: 'flex', gap: '8px' }}>
|
||||
<button
|
||||
className={`control-button ${settings.gameMode === 'sight_reading' ? 'active' : ''}`}
|
||||
onClick={() => onUpdateSettings({ ...settings, gameMode: 'sight_reading' })}
|
||||
style={{ flex: 1 }}
|
||||
>
|
||||
Sight Reading
|
||||
</button>
|
||||
<button
|
||||
className={`control-button ${settings.gameMode === 'ear_training' ? 'active' : ''}`}
|
||||
onClick={() => onUpdateSettings({ ...settings, gameMode: 'ear_training' })}
|
||||
style={{ flex: 1 }}
|
||||
>
|
||||
Ear Training
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Rhythm Controls */}
|
||||
<div className="control-group rhythm-group" style={{ borderTop: '1px solid rgba(255,255,255,0.1)', paddingTop: '12px', marginTop: '12px', width: '100%' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '12px', marginBottom: '8px' }}>
|
||||
|
||||
Reference in New Issue
Block a user