Add date and time settings

pull/3560/head
Martin Pool 2024-09-03 23:26:21 +02:00
parent f35a7e5097
commit b8a8d9bbd7
2 changed files with 12 additions and 2 deletions

View File

@ -3,7 +3,7 @@
"name": "Dutch Clock",
"shortName":"Dutch Clock",
"icon": "app.png",
"version":"0.04",
"version":"0.05",
"description": "A clock that displays the time the way a Dutch person would respond when asked what time it is.",
"type": "clock",
"tags": "clock,dutch,text",

View File

@ -46,8 +46,18 @@
getOption('Hybrid', 'variant', VARIANT_HYBRID),
{
title: 'Show widgets?',
value: settings.showWidgets ?? true,
value: settings.showWidgets,
onchange: v => writeSetting('showWidgets', v)
},
{
title: 'Show time?',
value: settings.showTime,
onchange: v => writeSetting('showTime', v)
},
{
title: 'Show date?',
value: settings.showDate,
onchange: v => writeSetting('showDate', v)
}
];