Skip to content

Commit

Permalink
Switched to SVG graphics for scalability
Browse files Browse the repository at this point in the history
  • Loading branch information
KirAsh4 committed Jul 9, 2016
1 parent 4fde8d7 commit 6cb43ca
Show file tree
Hide file tree
Showing 22 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/default/clock/clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Module.register("clock",{
clockCircle.style.height = this.config.analogSize;

if ((this.config.analogFace != '' || this.config.analogFace != false) && this.config.analogFace !== 'none') {
clockCircle.style.background = "url("+ this.data.path + "/faces/" + this.config.analogFace + ".png)"
clockCircle.style.background = "url("+ this.data.path + "/faces/" + this.config.analogFace + ".svg)"
clockCircle.style.backgroundSize = "100%";
} else if (this.config.analogFace != 'none') {
clockCircle.style.border = "5px double white";
Expand Down
8 changes: 4 additions & 4 deletions modules/default/clock/clock_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
position: absolute;
top: 50%;
left: 50%;
margin: -38% -1px 0 0; /* numbers must match negative length & thickness */
padding: 38% 1px 0; /* indicator length & thickness */
background: red;
margin: -38% -1px 0 0; /* numbers must match negative length & thickness */
padding: 38% 1px 0 0; /* indicator length & thickness */
background: #888888;
-webkit-transform-origin: 50% 100%;
-ms-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
}
Binary file removed modules/default/clock/faces/face-001.png
Binary file not shown.
1 change: 1 addition & 0 deletions modules/default/clock/faces/face-001.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed modules/default/clock/faces/face-002.png
Binary file not shown.
1 change: 1 addition & 0 deletions modules/default/clock/faces/face-002.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed modules/default/clock/faces/face-003.png
Binary file not shown.
1 change: 1 addition & 0 deletions modules/default/clock/faces/face-003.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed modules/default/clock/faces/face-004.png
Binary file not shown.
1 change: 1 addition & 0 deletions modules/default/clock/faces/face-004.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed modules/default/clock/faces/face-005.png
Binary file not shown.
1 change: 1 addition & 0 deletions modules/default/clock/faces/face-005.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed modules/default/clock/faces/face-006.png
Binary file not shown.
Loading

0 comments on commit 6cb43ca

Please sign in to comment.