[verified] feat: add immersive themes and focus controls

This commit is contained in:
2026-07-23 02:00:41 +03:00
parent 6baa13dc90
commit 0ee986e686
8 changed files with 856 additions and 33 deletions
+14
View File
@@ -9,6 +9,20 @@ import {
import { IndexedDbSettingsStore } from './settings-store'
describe('application settings', () => {
it('uses the selected theme clock color by default', () => {
expect(DEFAULT_SETTINGS.useThemeClockColor).toBe(true)
})
it('preserves a legacy custom clock color as an override', () => {
const legacySettings: Partial<AppSettings> = {
...DEFAULT_SETTINGS,
textColor: '#23ab67',
}
delete legacySettings.useThemeClockColor
expect(normalizeSettings(legacySettings).useThemeClockColor).toBe(false)
})
it('automatically starts the next timer by default', () => {
expect(DEFAULT_SETTINGS.autoStartNext).toBe(true)
})