mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 17:23:25 +00:00
CLN - remove redundant phone controls
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user