linen.dev icon indicating copy to clipboard operation
linen.dev copied to clipboard

As a individual user I can set dark mode as a preference

Open cheeseblubber opened this issue 1 year ago • 5 comments

It should probably be set in profile when you click on your image

cheeseblubber avatar Jun 13 '23 18:06 cheeseblubber

.

cheeseblubber avatar Jun 13 '23 18:06 cheeseblubber

@cheeseblubber I'd like to take this up. Could you please assign this to me?

hmacr avatar Sep 21 '23 15:09 hmacr

@emilos @cheeseblubber What's the difference between auths and users? I see that auths holds an array of users. I'm not sure what this means.

Also, here is my proposal for this issue. Please let me know your thoughts.

  • store theme_preference ('light' | 'dark') in users or auths table.
  • expose APIs to get and set this property.
  • use this property for the UI theme.

hmacr avatar Sep 21 '23 17:09 hmacr

auths table makes most sense now

long story short; auths are used for authentication, users is a concept of the user within a community

emilos avatar Sep 21 '23 18:09 emilos

Thanks!

Ah, it makes sense now; 1 auth -> many logical users (1 per community)

hmacr avatar Sep 21 '23 18:09 hmacr