Skip to content

Instantly share code, notes, and snippets.

@eaccmk
Last active September 12, 2021 10:19
Show Gist options
  • Save eaccmk/0fca7c27e762078db478910ff8c6592b to your computer and use it in GitHub Desktop.
Save eaccmk/0fca7c27e762078db478910ff8c6592b to your computer and use it in GitHub Desktop.
Fitbit app companion (mobile) setting to set background colour
// author : https://github.com/eaccmk
// created : sep-2021
function mySettings(props) {
return (
<Page>
<Section
title={
<Text bold align="center">
Demo Settings
</Text>
}
>
<Toggle settingsKey="toggle" label="Toggle Switch" />
<ColorSelect
settingsKey="color"
colors={[
{ color: "tomato" },
{ color: "sandybrown" },
{ color: "#FFD700" },
{ color: "#ADFF2F" },
{ color: "deepskyblue" },
{ color: "plum" },
]}
/>
</Section>
</Page>
);
}
registerSettingsPage(mySettings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment