b3by / atom-clock

Place a clock or calendar in your status bar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tooltip alert for UTC time

b3by opened this issue · comments

It could be helpful to have an UTC indicator in the tooltip, that should show when the UTC time is enabled. Assuming the tooltip time format is still LLLL, the indicator could be something like:

(UTC) Wednesday, August 30, 2017 11:21 AM
commented

So something like this?

Local:
screen shot 2017-08-30 at 11 58 27

UTC:
screen shot 2017-08-30 at 11 58 42

Exactly. I guess there's already a PR on the way. 🥇

commented

Yeah I'll make one in a bit. I'm just thinking about adding a class to the time element and/or tooltip when in UTC mode so the user can customise it how they want including adding text before or after using the content property in their CSS.

That's a good point. Probably a atom-clock-utc-time class in the time element could be enough I guess. The tooltip can be picked with its own atom-clock-tooltip class, so this should be quite easy to edit.

commented

I've added a atom-clock-utc class to the atom-clock element and the atom-clock-tooltip element so now you can do this. I think this is probably a better solution than forcing people to have (UTC) especially if they don't have the tooltip enabled.

Local:
screen shot 2017-08-30 at 14 12 06

UTC:
screen shot 2017-08-30 at 14 12 22

Primo! Very well done, thank you! This'll keep things tidy.
I guess I'll add some of these snippets for personalizing the clock in the README file!!

commented

Yeah I'll add some stuff into the README now and submit the PR