Skip to content
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

Archive icon not always correctly adapted #2249

Closed
solokot opened this issue Dec 23, 2024 · 7 comments · Fixed by #2253
Closed

Archive icon not always correctly adapted #2249

solokot opened this issue Dec 23, 2024 · 7 comments · Fixed by #2253
Labels
severity: major Severely degrades major functionality or product features, with no satisfactory workaround type: bug Something isn't working

Comments

@solokot
Copy link
Contributor

solokot commented Dec 23, 2024

The archive card icon is not adapted to white background (is only visible when the card is selected).

Catima 2.34.1 F-Droid build
OS: Android 11 MIUI 12.5

Strip 4

Attached is a thumbnail file from the backup archive for clarification colors.

card_15_icon

@TheLastProject TheLastProject added type: bug Something isn't working state: unconfirmed Needs testing to confirm severity: major Severely degrades major functionality or product features, with no satisfactory workaround labels Dec 23, 2024
@TheLastProject
Copy link
Member

Need to test to confirm but looks like Catima somehow sees that image as one needing a white background instead of a black one.

Seeing your timing, did this change in some version (did it work before) or did you not test this image before?

@solokot
Copy link
Contributor Author

solokot commented Dec 23, 2024

I noticed it earlier. I have now installed version 2.26 from github (selected at random), restored data from a backup. I have exactly the same problem, i.e. the old one.

@TheLastProject TheLastProject removed the state: unconfirmed Needs testing to confirm label Dec 24, 2024
@TheLastProject
Copy link
Member

I can confirm this. The issue at hand seems to be that Catima bases this on the "dominant" colour, which for this image is green (even though most the image is white). In a way, this seems vaguely related to #2250.

It seems that using the Palette dominant color is mostly good for choosing the status bar color (with a few edge cases as you named in #2250), but is not good for choosing the icon colour.

It should be noted that the star icon has no problem with this, as it is made of two layers (the image itself, and a second "border" layer). However, doing the same for the archive icon seems to just make it very dark.

Not quite sure yet how to best fix this. Preferably, the icons would always have a two-coloured border so it works on any background but I'm horrible at graphic design 😅

@TheLastProject
Copy link
Member

Got some help and created #2253. Should fix your case. I tested it even with an image of the exact greyscale of the new icons (#D3D3D3) and it remained visible :)

@solokot
Copy link
Contributor Author

solokot commented Dec 25, 2024

Yep! The debug build #2253 solved not only #2249, but #2248 look fine too!

@TheLastProject
Copy link
Member

That's very strange, as I didn't touch anything related to that (just fixed some small things in the icon layout), but well, let's close that too then, can always reopen if it pops back up :)

@solokot
Copy link
Contributor Author

solokot commented Dec 26, 2024

Then it’s really strange, but now I checked again: I installed https://github.com/CatimaLoyalty/Android/releases/tag/v2.34.1 and #2253 completely clean, restored the data from the same backup - the debug build does not have the problem #2248 of displaying vertical lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: major Severely degrades major functionality or product features, with no satisfactory workaround type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants