Skip to content

Commit

Permalink
Minor updates (#1)
Browse files Browse the repository at this point in the history
* change sandbox background

* better fonts
  • Loading branch information
StuxVT authored Mar 9, 2024
1 parent 363e146 commit 469e030
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion libs/icons.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
body {
width: 100%;
height: 100%;
background-color: #9bd79a;
background-color: #404040;
}

.widget {
Expand Down
2 changes: 1 addition & 1 deletion widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ window.addEventListener('onWidgetLoad', function (obj) {

// visuals
timerElement.style.backgroundColor = fieldData.backgroundColor
timerElement.style.fontFamily = fieldData.font
timerElement.style.fontFamily = fieldData.fontName

// seconds -> min:sec format
function formatTime(time) {
Expand Down
21 changes: 3 additions & 18 deletions widget.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,9 @@ let fieldData={
"type": "colorpicker",
"value": "rgba(0, 0, 0, 0.5)"
},
"font": {
"label": "Font",
"type": "dropdown",
"fontName": {
"type": "googleFont",
"label": "Google Font name",
"value": "Montserrat",
"options": {
"Montserrat": "Montserrat",
"Arial": "Arial",
"Helvetica": "Helvetica",
"Times New Roman": "Times New Roman",
"Courier New": "Courier New",
"Verdana": "Verdana",
"Georgia": "Georgia",
"Garamond": "Garamond",
"Bookman": "Bookman",
"Comic Sans MS": "Comic Sans MS",
"Trebuchet MS": "Trebuchet MS",
"Arial Black": "Arial Black",
"Impact": "Impact"
}
}
}

0 comments on commit 469e030

Please sign in to comment.