Commit Graph

61 Commits (641cd01230947f706518064acd54fa55c4bf4da5)

Author SHA1 Message Date
Gordon Williams 45b5332c3c oops, and update versions after merge 2021-10-06 20:17:34 +01:00
Gordon Williams 05145da819 tweaks to last commit 2021-10-06 20:14:22 +01:00
Gordon Williams 2b5f1228b8
Merge branch 'master' into custom_theme 2021-10-06 19:55:00 +01:00
Gordon Williams f78c9b7c22 settings 0.29: Move '< Back' to the top of menus 2021-10-06 09:45:12 +01:00
Richard de Boer dead112871 settings: customize theme 2021-10-03 21:03:07 +02:00
Richard de Boer 1aeed274c3 settings: update Quiet Mode widget (if present) 2021-08-11 01:30:11 +02:00
Gordon Williams 2b53e6f84d correct default light theme 2021-06-30 13:52:52 +01:00
Gordon Williams ede6318ac6 add settings theme menu 2021-06-24 16:09:40 +01:00
Gordon Williams d570261e47 Revert "Revert softOff as it seems broken on Bangle.js" - fixed! https://github.com/espruino/Espruino/issues/2011
This reverts commit d92855a4c6.
2021-05-28 19:41:33 +01:00
Gordon Williams d92855a4c6 Revert softOff as it seems broken on Bangle.js 2021-05-28 14:50:52 +01:00
Gordon Williams 96afb54d0a setting 0.26: Use Bangle.softOff if available as this keeps the time 2021-05-28 12:02:59 +01:00
Richard de Boer ed548dd6e9 settings: add Quiet Mode options
Override LCD options during quiet time:
- Brightness
- Timeout
- Wake on Touch
- Wake on Twist
- Wake on Face Up
2021-03-25 23:53:51 +01:00
Richard de Boer 2ce6adcb55 settings: add Quiet Mode setting
options: Off/Alarms/Silent
2021-03-25 23:53:51 +01:00
nujw ab6b6c5fe4
NZ summer time is UTC+13
Increased maximum locale time offset from 12 to 13.
2021-01-28 17:43:52 +13:00
Gordon Williams f352281482 settings: Move HID to BLE menu 2020-09-28 09:05:28 +01:00
Gordon Williams cb0b228f0e Settings 0.21: Add passkey pairing option (BETA), Add whitelist option (fix #78) 2020-07-30 09:59:20 +01:00
Gordon Williams 529c2403b3 Merge branch 'passkey_pairing' 2020-07-30 09:08:31 +01:00
Frans Meulenbroeks b4f5549c54 Allow 31 as day number 2020-06-08 16:45:16 +02:00
Gordon Williams de58659257 settings: Fix set time menu, allow dates to roll over 2020-06-08 09:52:27 +01:00
Gordon Williams 297188624e Move BLE into its own menu, add passkey pairing setup. Doesn't seem great when working via web bluetooth 2020-05-15 16:14:17 +01:00
Gordon Williams 53d9982a5a tweak to aid with settings development - fix #366 2020-04-30 10:23:43 +01:00
Gordon Williams 2651508dfc oops - fix to limit HID choices 2020-04-28 17:03:52 +01:00
Gordon Williams 517c35a37d Added BLE HID option for Joystick and bare Keyboard, update HID apps to send correct info 2020-04-28 15:23:02 +01:00
Richard de Boer c7f2a18caa Remove "settings" from appid.info 2020-04-17 21:08:07 +02:00
Gordon Williams eb4ac302cc Reduce memory usage further when running app settings page 2020-04-16 11:33:36 +01:00
Gordon Williams 78214a267e 0.15: Reduce memory usage when running default clock chooser (#294) 2020-04-15 10:35:29 +01:00
Gordon Williams d54c0c7dea 0.14: Reduce memory usage when running app settings page 2020-04-14 16:11:29 +01:00
Gordon Williams 1a69b2a3ac
Merge branch 'master' into setting 2020-04-14 10:13:09 +01:00
Richard de Boer f5246a4212 Some minor settings fixes 2020-04-12 01:29:57 +02:00
Marco Heiming d9a9bae5ee Move LCD Brightness menu into more general LCD menu & unify writings 2020-04-10 17:42:14 +02:00
Gordon Williams f0cd452622 0.12: Fix memory leak (#206)
Bring App settings nearer the top
      Move LCD Timeout to wakeup menu
2020-04-09 21:51:19 +01:00
Gordon Williams 50e61015ec Settings: Make LCD brightness work after leaving settings (fix #186) 2020-04-08 10:16:32 +01:00
Gordon Williams 2dfbbfd64e
Merge branch 'master' into lcd-brightness-setting 2020-04-06 10:03:28 +01:00
Simon Weis da0aa84705 Adds LCD brightness setting 2020-04-05 16:30:55 +02:00
Simon Weis d325be9b57 Merge branch 'master' into auto-on-settings 2020-04-04 17:56:49 +02:00
Simon Weis dd2b820587 Changed wording a bit 2020-04-04 17:50:23 +02:00
Simon Weis 90e49c215a Remove left over code 2020-04-04 17:40:18 +02:00
Simon Weis a5a05baa56 Add lcd auto-on settings 2020-04-04 17:37:33 +02:00
Richard de Boer 7b669cd028 Move Welcome config into App/widget settings 2020-04-04 01:30:33 +02:00
Richard de Boer 048a042ffa Revert "Settings: load app settings in their own scope"
> Actually eval('('+appSettings+')') is significantly worse I'm afraid.
>
> Basically, if you do Storage.read you get a pointer to external memory
> Any functions have their code kept in that memory so it saves loads of
> RAM. The second you append to the string it has to copy everything to
> RAM - so now every function ends up in RAM, not Flash :(

This reverts commit c135c70f
2020-04-03 21:32:05 +02:00
Richard de Boer fc7e61e2ca Settings: minor reformat 2020-04-03 19:59:15 +02:00
Richard de Boer c135c70f7e Settings: load app settings in their own scope 2020-04-03 19:56:30 +02:00
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 6cfe9c340b Take advantage of recent nonbreaking change that stops readJSON from causing errors 2020-02-28 17:02:26 +00:00
Gordon Williams 50e3c852fb MASSIVE REFACTOR
New Bangle.js firmwares remove 8 char name restriction so we're ditching the first char -> file type and using normal file extensions
Took the opportunity to remove code for older Bangle.js (since the new stuff won't work anyway)
Also removed the need for an 'app.json' - it's now renamed 'app.info' on the watch, and we just auto-generate it
Renamed a few apps so widgets all start with 'wid'
2020-02-28 11:44:25 +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
Gordon Williams 47205bfe61 Add alarms app (fix #83) 2020-02-12 10:48:14 +00:00