Last active
September 12, 2021 10:19
-
-
Save eaccmk/0fca7c27e762078db478910ff8c6592b to your computer and use it in GitHub Desktop.
Fitbit app companion (mobile) setting to set background colour
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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