1
0
Fork 0
Commit Graph

57 Commits (1fb256b9def3cf47df62d79b1f8f1ae563848e5f)

Author SHA1 Message Date
Richard de Boer 39621bfae0 Settings: Add support for app/widget settings
Apps and widgets can add a `<appid>.settings.js` file which can be
opened from the "App/widget settings" submenu.
This file should define a single function to configure the app/widget.
The function is passed a `back` argument, which can be used to return to
the settings menu by calling `back()`.

Example `<appid>.settings.js`:
```
function settings(back) {
  const mySettingsMenu = {
    '': { 'title': 'My Widget' },
    '< Back': back, // go back to settings menu
    'Sound': {
      value: false,
      format: s => s ? 'on' : 'off',
      onchange: s => {if(s) Bangle.beep()} // TODO: save new value
    },
  };
  E.showMenu(mySettingsMenu)
}
```
2020-04-03 01:46:43 +02:00
Gordon Williams a874d5838c Added vibrate as beep workaround 2020-03-25 11:05:33 +00:00
Gordon Williams af686919a1 Remove distance setting as there's a separate app for Locale now 2020-03-10 12:35:45 +00:00
Gordon Williams 95a42582f3 Fix Settings json 2020-02-27 16:01:17 +00:00
Gordon Williams 9a76d6d800 Disable GPS time log messages, add (default=1) setting to hide log messages 2020-02-25 13:34:06 +00:00
Gordon Williams 860da909bf Added welcome app (fix #96)
When installing default apps, update time
2020-02-13 08:18:46 +00:00
Ujjwal Sharma d483eb9064
feature: all thirty-minute timezones 2019-12-19 03:12:55 +05:30