Skip to content

Commit

Permalink
Merge pull request #1 from tripwirebe/main
Browse files Browse the repository at this point in the history
added a slider so you can change the size of the clock
  • Loading branch information
TurboLion authored Jan 9, 2022
2 parents da5ba44 + 3bcd1ba commit 44c82d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const settings = {
fps: 0,
isLightTheme: false,
highlightColor: "#f57c00", // Orange 700
scale:100
};

// Matrix for numbers in a 3x5 grid
Expand Down Expand Up @@ -79,6 +80,10 @@ window.wallpaperPropertyListener = {
settings.highlightColor = `rgb(${highlightColor})`;
setHighlightColor(settings.highlightColor);
}

if(properties.scale){
document.body.style.transform = 'scale(' + properties.scale.value/100 + ')';
}
},
};

Expand Down
10 changes: 9 additions & 1 deletion project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
"text": "ui_browse_properties_scheme_color",
"type": "color",
"value": "0.9607843137254902 0.48627450980392156 0"
}
},
"scale": {
"order": 0,
"text": "Scale",
"type": "slider",
"value": 100,
"min":10,
"max":300
}
}
},
"preview": "preview.jpg",
Expand Down

0 comments on commit 44c82d3

Please sign in to comment.