-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
primary/element color values for dark/light themes #21586
Comments
Capabilities has a theming > color-text https://github.com/nextcloud/server/blob/master/apps/theming/lib/Capabilities.php#L79 |
@nickvergessen I believe that none of these values is dark/light aware 🤔 |
Same should be done for element and font color 👍 |
Well primary will not be touched, it is just the plain value. But you should use I will add |
@nickvergessen so that means always use
@nickvergessen can you confirm this is how we should utilize the (then new) colors? |
Yeah that's how I understand it too. |
How to use GitHub
Is your feature request related to a problem? Please describe.
The server's API allows the clients (in this case the Android files app) to read the theming values like the primary and the element color. As discussed with @tobiasKaminsky based on the feedback coming from @juliushaertl the primary color is the actual primary color and the element color is basically a background color aware primary color that has a fallback calculation for very, very low contrast primary colors (as in fallback to grey in case you use white primary on white background). This helps the clients with the theming regarding such a scenario. With nextcloud/android#6332 (comment) we (as in I) dropped the use of element color for wrong reasons. The reason being fallback handling for dark themes (supported by the mobile apps) since the element color logic doesn't work for dark themes (not present on server) and also not linked to the client. So at the moment we switched to using the server-side primary color with a client side fallback calculation for low-contrast dark/light scenarios. This is bad since all dark/light supporting client would have to re-implemend this.
Describe the solution you'd like
It be great if
so the client could retrieve and store both variants and use them according to the app's chosen theming (dark/light). That way we would
Describe alternatives you've considered
The alternative is in place to some extend as-in implement the "color-correction" on the client-side which leads to the down-sides mentioned above.
Additional context
looping in @tobiasKaminsky for additional Android files app skills, @juliushaertl for server-side theming skills and color-calculation wizardry, @marinofaggiana for iOS feedback
The text was updated successfully, but these errors were encountered: