elk-zone / elk

A nimble Mastodon web client
https://elk.zone
MIT License
5.39k stars 555 forks source link

Grayscale support for digital wellbeing #1122

Closed ljrk0 closed 1 year ago

ljrk0 commented 1 year ago

Clear and concise description of the problem

Colorful images and UI interfaces encourage interaction, leading to addiction-like behaviors.

Suggested solution

As part of Elk's digital wellbeing configurations, adding a greyscale or greyscale-optimized mode could tone down the effect of such imagery and interfaces.

Alternative

Alternatively, some systems such as iOS support a device-wide greyscale mode. While this is definitely nice to reduce time spent on the phone in general, this filter may work against us by also decreasing contrast of certain UI elements. Ideally, Elk could detect (how?) that this mode is active and adjust certain UI elements if needed.

However, a system-wide greyscale mode is no replacement for a per-app setting. Especially on the desktop I need the colors for work but would like to have my social media client to be less distracting. Also, some systems don't have system-wide greyscale in general.

Additional context

The now unmaintained client pinafore.social had the option to turn on a greyscale mode (theme) based in recommendations of humantech.com.

Maybe that's something Elk could implement as well, what do you think?

Finally, I just wanted to thank you for the work, I really appreciate all the effort into not "only" developing the most polished client but also caring for r2l languages, digital wellbeing and secure technology (totally hyped about tauri native!).

stackblitz[bot] commented 1 year ago

Solve in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

JonasKruckenberg commented 1 year ago

Interesting, do you by any chance have some studies handy or other data to back this up (If it's just something you discovered about your own behaviour that's ofc totally valid too) because it's the first time I heard about this being a strategy to mitigate causes of addiction. I would really like to know more

patak-dev commented 1 year ago

Also interested if there are studies to justify this.

We can keep talking here, closing to properly track things now that https://github.com/elk-zone/elk/pull/1177 has been merged. Later on we can create new issues to improve on it.

boehs commented 1 year ago

Here is one such study

In addition, total screen time was significantly less for these individuals by an average of 37.90 min each day. The influence of grayscale did not account for improvement in anxiety or depression

And another, this one a bit broader in scope but publicly accessible https://psyarxiv.com/tjynk

ljrk0 commented 1 year ago

Interesting, do you by any chance have some studies handy or other data to back this up (If it's just something you discovered about your own behaviour that's ofc totally valid too) because it's the first time I heard about this being a strategy to mitigate causes of addiction. I would really like to know more

Thanks @boehs for providing actual studies, I had this in Pinafore and subjectively it helped. Also Apple supports this system-wide so I suppose there's something a bit more substantial to that 0:-)

@patak-dev Now that #1177 is merged, I realize that this issue was (at least) a 2in1. Shall I create new, separate issues to track grayscale theme & investigation into the iOS-grayscale-mode-detection?

patak-dev commented 1 year ago

@ljrk0 yes, please create a new issue linking to these discussions so we can track the feature