ellatrix / focus

Focus!
21 stars 5 forks source link

Add toggle so this feature can be disabled per-user #13

Closed markjaquith closed 10 years ago

markjaquith commented 10 years ago

This feature is very opinionated. Users might want to disable it. Thankfully, we can do this without any (or much) new UI, as the DFW (full screen) button was already in place. We can use this as a toggle between auto-DFW (which should be default), and no-DFW.

ellatrix commented 10 years ago

What icon should we use? The current one wouldn't make much sense.

markjaquith commented 10 years ago

@melchoyce thoughts?

ellatrix commented 10 years ago

The only icon that it somewhat relevant is this: https://github.com/melchoyce/dashicons/blob/master/svg/smiley.svg

:D

melchoyce commented 10 years ago

Would we be getting rid of DFW entirely if this merges? If so, I'd just reuse that button.

ellatrix commented 10 years ago

Yes, but the icon for that button is not good. We're not toggling fullscreen.

melchoyce commented 10 years ago

But it feels fullscreen, right? Do you think users will care about the difference?

markjaquith commented 10 years ago

Original DFW wasn't really fullscreen either. I'm not sure the distinction matters.

What could we use to indicate toggle state? Make it look dim and inactive when auto DFW is disabled?

ellatrix commented 10 years ago

Okay, let's use the fullscreen icon then. Just use the active buttons styles?

ellatrix commented 10 years ago

Like bold etc.

melchoyce commented 10 years ago

Yeah, I'd just use what's already there.

michaelbeil commented 10 years ago

No smiley? sad day. just tested the dfw/focus toggle, and it doesn't do anything yet.

ellatrix commented 10 years ago

What does it not do? If you toggle it off, does the fading not stop?

michaelbeil commented 10 years ago

It doesn't stop. Focus mode remains on. http://beil.io/1guSD

ellatrix commented 10 years ago

Any JS errors? Are you sure you pulled the latest changes?

michaelbeil commented 10 years ago

No JS errors. And I believe so. I pull again.

ellatrix commented 10 years ago

Did it work?

michaelbeil commented 10 years ago

Not quite yet @avryl. will check again tomorrow via other browsers.