Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SettingsPageElement

Polymer element for the Settings Page

Hierarchy

Index

Constructors

Static constructor

  • Returns SettingsPageElement

Events

onChromeBackgroundTapped

  • onChromeBackgroundTapped(): void

onDarkModeChanged

  • onDarkModeChanged(): void

onDeselectAllTapped

  • onDeselectAllTapped(): void

onDetectFacesTapped

  • onDetectFacesTapped(): Promise<void>

onEnabledChanged

  • onEnabledChanged(): void

onHelpTapped

  • onHelpTapped(): void

onRestoreDefaultsTapped

  • onRestoreDefaultsTapped(): void

onSelectAllTapped

  • onSelectAllTapped(): void

onShowWeatherTapped

  • onShowWeatherTapped(): Promise<void>

onUnsplashChanged

  • onUnsplashChanged(ev: CustomEvent): Promise<void>

Properties

Protected darkModeToggle

darkModeToggle: SettingToggleElement

enabled

enabled: boolean = true

Enabled state of screensaver flag

panAndScanValue

panAndScanValue: boolean = false

"Ken Burns" effect animation flag

photoSizingMenu

photoSizingMenu: string[] = [ChromeLocale.localize('menu_letterbox'),ChromeLocale.localize('menu_zoom'),ChromeLocale.localize('menu_frame'),ChromeLocale.localize('menu_full'),ChromeLocale.localize('menu_random'),]

Photo sizing menu

photoTransmissionMenu

photoTransmissionMenu: string[] = [ChromeLocale.localize('menu_scale_up'),ChromeLocale.localize('menu_fade'),ChromeLocale.localize('menu_slide_from_right'),ChromeLocale.localize('menu_slide_down'),ChromeLocale.localize('menu_spin_up'),ChromeLocale.localize('menu_slide_up'),ChromeLocale.localize('menu_slide_from_bottom'),ChromeLocale.localize('menu_slide_right'),ChromeLocale.localize('menu_random'),]

Photo transition menu

selectedTab

selectedTab: TAB = TAB.CONTROLS

Index of current tab

Protected settingsToggle

settingsToggle: SettingToggleElement

showTimeValue

showTimeValue: TIME_FORMAT = TIME_FORMAT.HR_12

Index of time value to show on screensaver

showWeatherValue

showWeatherValue: boolean = false

Show current weather flag

tempUnitMenu

tempUnitMenu: string[] = ['\u00b0C','\u00b0F',]

Temperature unit menu

timeFormatMenu

timeFormatMenu: string[] = [ChromeLocale.localize('no'),ChromeLocale.localize('menu_12_hour'),ChromeLocale.localize('menu_24_hour'),]

Time format menu

transitionTimeUnits

transitionTimeUnits: object[] = [SettingsPageElement.getUnit('seconds', 10, 60, 1, 1),SettingsPageElement.getUnit('minutes', 1, 60, 1, 60),SettingsPageElement.getUnit('hours', 1, 24, 1, 3600),SettingsPageElement.getUnit('days', 1, 365, 1, 86400),]

Transition time unit menu

waitTimeUnits

waitTimeUnits: object[] = [SettingsPageElement.getUnit('minutes', 1, 60, 1, 1),SettingsPageElement.getUnit('hours', 1, 24, 1, 60),SettingsPageElement.getUnit('days', 1, 365, 1, 1440),]

Wait time unit menu

weatherTempUnitValue

weatherTempUnitValue: TEMP_UNIT = Weather.TEMP_UNIT.C

Index of temp unit to show on screensaver

Accessors

detectFacesDisabled

  • get detectFacesDisabled(): boolean

largeTimeDisabled

  • get largeTimeDisabled(): boolean

menuHidden

  • get menuHidden(): boolean

weatherTempDisabled

  • get weatherTempDisabled(): boolean

Static template

  • get template(): HTMLTemplateElement

Methods

deselectPhotoSource

  • deselectPhotoSource(useName: string): void

Protected fireEvent

  • fireEvent(name: string, detailValue?: any): void
  • Dispatch an event

    Parameters

    • name: string

      event name

    • Optional detailValue: any

      optional value

    Returns void

onEnterPage

  • onEnterPage(): Promise<void>

onLeavePage

  • onLeavePage(): Promise<void>

Protected setPhotoSourceChecked

  • setPhotoSourceChecked(useName: string, state: boolean): void

Protected setPhotoSourcesChecked

  • setPhotoSourcesChecked(state: boolean): void

Static Protected getUnit

  • getUnit(name: string, min: number, max: number, step: number, mult: number): object
  • Get a Unit object

    Parameters

    • name: string

      unit name

    • min: number

      min value

    • max: number

      max value

    • step: number

      increment

    • mult: number

      multiplier between base and display

    Returns object

    A unit object

    • max: number
    • min: number
    • mult: number
    • name: string
    • step: number

Static localize

  • localize(name: string, def?: undefined | string): string
  • Localize a string

    Parameters

    • name: string

      name from _locales

    • Optional def: undefined | string

      optional default value if name not found

    Returns string

Generated using TypeDoc