hyperambient icon indicating copy to clipboard operation
hyperambient copied to clipboard

Adjust brightness according to the outside brightness

Open petetnt opened this issue 8 years ago • 5 comments

Maybe more of a general question about the ambient sensor and Hyperterm theming: would it be possible to adjust the brightness of the theme instead of completely switching between themes when the threshold is passed?

petetnt avatar Jul 21 '16 15:07 petetnt

Definitely, that would be awesome. Thou I'm not sure how to implement it; I don't feel like having a black opaque overlay div ontop of the view...

jamo avatar Jul 21 '16 16:07 jamo

I took a quick shot on this, and just blindly darkening/brightening with https://github.com/Qix-/color#manipulation didn't really yield the wanted result with the solarized dark/light themes.

jamo avatar Jul 21 '16 16:07 jamo

I think this needs custom themes, i can try to hack something together

albinekb avatar Jul 21 '16 21:07 albinekb

Awesome. I wish we find a way that would fit to all themes w/o any modifications to the themes...

Btw, I just added support for customizing light and dark themes: https://github.com/jamox/hyperambient#customizing - so now there is a config file where this feature could easily be configured.

jamo avatar Jul 21 '16 21:07 jamo

Cool! Yes it would be awesome to make it work with all themes. Maybe with just a bit of logic we can get it to work. We probably need to check all the colors of the theme, use something to determine contrast between them to be able to change the color correctly

albinekb avatar Jul 21 '16 22:07 albinekb