CLN - remove redundant phone controls

This commit is contained in:
Leon.Schmidt
2026-08-09 15:30:30 +02:00
parent 6467ea8f34
commit 550982f847
6 changed files with 22 additions and 98 deletions
-3
View File
@@ -25,7 +25,6 @@ describe('preferences', () => {
clock: { enabled: false, sounds: false },
},
phoneScale: 110,
rotationLocked: true,
screenBrightness: 64,
wallpaper: 'ember',
wifiEnabled: false,
@@ -53,7 +52,6 @@ describe('preferences', () => {
sounds: true,
})
expect(value.settings.phoneScale).toBe(110)
expect(value.settings.rotationLocked).toBe(true)
expect(value.settings.screenBrightness).toBe(64)
expect(value.settings.wallpaper).toBe('ember')
expect(value.settings.wifiEnabled).toBe(false)
@@ -97,7 +95,6 @@ describe('preferences', () => {
cellularEnabled: true,
focusMode: false,
graphicsMode: 'performance',
rotationLocked: false,
screenBrightness: 100,
wifiEnabled: true,
})
-6
View File
@@ -54,7 +54,6 @@ export type PhonePreferencesV1 = {
phoneScale: number
ringtone: RingtoneId
ringtoneVolume: number
rotationLocked: boolean
screenBrightness: number
streamerMode: boolean
wallpaper: WallpaperId
@@ -114,7 +113,6 @@ export const DEFAULT_PHONE_PREFERENCES: PhonePreferencesV1 = {
phoneScale: 100,
ringtone: 'skyline',
ringtoneVolume: 80,
rotationLocked: false,
screenBrightness: 100,
streamerMode: false,
wallpaper: 'midnight',
@@ -244,10 +242,6 @@ export function parsePhonePreferences(raw: string | null): PhonePreferencesV1 {
0,
100,
),
rotationLocked: readBoolean(
settings.rotationLocked,
defaults.rotationLocked,
),
screenBrightness: readNumber(
settings.screenBrightness,
defaults.screenBrightness,