fix(theming): fix incorrectly inverted favicons#44119
Conversation
Signed-off-by: Simon L <szaimen@e.mail.de>
3087466 to
03d19f1
Compare
susnux
left a comment
There was a problem hiding this comment.
Works but not sure if this is intended, because the background color is not the primary color.
The reason the default looks odd is that for our default color we use the accessible color instead (there is a if color === ... then instead use other color).
If that is the case, then should we change the colors? I like the change visually, but if it reverts accessibility, should it not be kept? |
No in this case it is only the icon. But until we (maybe) get #42977 in we use a hack in DefaultTheme and in Capabilities that changes the primary color if it is Nextcloud blue to some slighly darker blue -> results then in white text color. |
I see! I like both solutions, but it seems that this would be more of a bandaid fix, so we might as well wait for the above PR to (hopefully?) be merged, seems much cleaner :) LGTM for now then! |
jancborchardt
left a comment
There was a problem hiding this comment.
Thanks for fixing that! :)
Reason: invertTextColor has changed and is not now incorrectly inverting icons even with the default primary color. This now switches to isBrightColor which more correctly returns what we need here.