add support for digital clock time color#3737
Conversation
|
weather test failed |
this one weather test seems to fail very often, don't know why ... (restarted it) |
…dd empty css for digitial hours/minutes
|
will update doc, to add 2 parms, hoursColor, minutesColor (like secondsColor) |
|
Just a thought: Instead of adding new options to the config for the hour and minute color. What do you think about marking I hope I'm not annoying you as I often ask such questions 😅 |
|
not annoying at all. more eyes and questions improve the results deprecated as in not documented, replaced by css i had css only before this push, but asked for guidance on consistency. |
|
weather failed again |
you have the rights to restart (failed) tests |
|
yes i know. waiting til we come to consensus on which way to go |
Nice 😃
Yes. And maybe if this option is set, a deprecation warning so we could after some releases may remove this option at all.
Yes, it should be consistent, either via config options or via css. |
its both before my changes now |
|
we could only do the deprecation message with lint as the module is in browser only. so |
We could also do it in the |
|
I just had a closer look. It turned out that in Checkout this commit in my testing branch: What do you think? |
|
Both solutions have its dis/advanteges. So I dont mind going the css route, depreacting the config options and adding the css styling as a new option into the docs of the module |
|
@KristjanESPERANTO I want to add an entry to the clock_styles.css for the three classes..but empty eslint rejects that.. what is a good approach to bypass this error? the reason for adding is that there are already classes for the analog clock arms, there is already a set of classes set on the div around the time digital |
|
@sdetweil I took a look at it and made a few changes. I've set a PR on your branch so that we don't have to talk in theory for too long: https://github.com/sdetweil/MagicMirror/pull/57.
Instead of bypass it and using an empty class, I continued the approach of doing CSS stuff in CSS instead of JavaScript. What do you think of it? |
|
now, can we write a testcase to prove the two spans instead of the time string. i hadnt made it there yet |
|
i submitted a pr to documentation for this deprecated property and added info on css |
Co-authored-by: Veeck <[email protected]>
see https://forum.magicmirror.builders/topic/19440/digital-clock-minutes-darker
changelog added
question..
we have a config parm for seconds color, but not hour/minute
I have used css here.. is that too inconsistent?