Skip to content

Commit d50940a

Browse files
committed
reenable secondsColor, update clock_styles.css with example, and comments */
1 parent 6607044 commit d50940a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

modules/default/clock/clock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ Module.register("clock", {
270270
clockSecond.id = "clock-second";
271271
clockSecond.style.transform = `rotate(${second}deg)`;
272272
clockSecond.className = "clock-second";
273+
clockSecond.style.backgroundColor = this.config.secondsColor; /* DEPRECATED, to be removed in a future version , use CSS instead */
273274
clockFace.appendChild(clockSecond);
274275
}
275276
analogWrapper.appendChild(clockFace);

modules/default/clock/clock_styles.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@
7878
left: 50%;
7979
margin: -38% -1px 0 0; /* numbers must match negative length & thickness */
8080
padding: 38% 1px 0 0; /* indicator length & thickness */
81-
background: var(--color-text);
81+
82+
/* background: #888888 !important; */
83+
84+
/* use this instead of secondsColor */
85+
86+
/* have to use !important, because the code explicitly sets the color currently */
8287
transform-origin: 50% 100%;
8388
}
8489

0 commit comments

Comments
 (0)