Preparing search index...

    Function getDarkMode

    • Reads the dark mode preference from storage.

      On first launch (before the setting is written) falls back to the OS colour scheme reported by Appearance. On storage error, also falls back to the OS colour scheme.

      Returns Promise<boolean>

      true when dark mode should be enabled, false otherwise.