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

Fix Issue: Languages text not visible on 'Emilia' theme #269 #270

Merged

Conversation

anettleship
Copy link
Contributor

@anettleship anettleship commented Jan 23, 2023

📜 Description

Fix for this issue #269 where the languages text is not visible in 'Emilia' theme.

Added fix for this issue #271 where Import CSV Alert Dialog test is not visible in 'Emilia' theme.

To contrast against the background colour for the language menu set by 'timelineBackgroundColor', I have aligned the text colour to use 'timelineBodyColor' from the the active theme for the language menu, instead of 'entryBodyColor'.

This involves an edit to CustomListPrefDialogFragCompat.kt

This also fixes the same text issue which is present in the First Day of the Week dialog (see screenshots).

I've added a second edit to address the issue with the Import CSV Alert Dialog, making changes to styles.xml where the AlertDialogTheme is set, again changing 'entryBodyColor' to 'timelineBodyColor' for the textColorPrimary and textColor Values, as well as the PositiveButtonStyle defined in the same section.

💚 How did you test it?

Manual test in Android Studio Emulator and on a Physical Pixel 6a.

Value comparison of the colour numbers set for 'entryBodyColor' and 'timelineBodyColor' in each theme in colors.xml.

The only theme affected other than Emilia, is Calm, which has very slightly different shades of text set by 'entryBodyColor' and 'timelineBodyColor'. See screenshots below.

📸 Screenshots / GIFs

Emilia Before:
Screenshot_20230123-211930

Emilia After:
Screenshot_20230123-211753

Calm Before:
Screenshot_20230123-212448

Calm After:
Screenshot_20230123-212655

Betsy Before (No Change):
Screenshot_20230123-211939

Betsy After (No Change):
Screenshot_20230123-211807

Emilia First Day of the Week, Before:
Screenshot_20230123-215009

Emilia First Day of the Week, After:
Screenshot_20230123-215053

Emilia Import Dialogue Before:
Screenshot_20230124-213501 Emilia Before

Emilia Import Dialogue After:
Screenshot_20230124-212913 Emilia After

Calm Import Dialogue Before:
Screenshot_20230124-213535 Calm Before

Calm Import Dialogue After:
Screenshot_20230124-213330 Calm After

Betsy Import Dialogue Before (No Change):
Screenshot_20230124-213547 Betsy Before

Betsy Import Dialogue After (No Change):
Screenshot_20230124-214044 Betsy After

@anettleship
Copy link
Contributor Author

Minor issue, I can see the Type Face in my development copy of the app does not match the typeface of the production app. I assume this is because I forked from the develop branch rather than the production branch, but I want to call this out incase something else is happening!

… timelineBodyColor instead of entryBodyColor, to fix invisible text bug in Import Dialog with Emilia theme.
@anettleship
Copy link
Contributor Author

I've edited the original pull request to add a fix for the Import CSV dialog issue.

@alisonthemonster
Copy link
Owner

Thank you so much @anettleship for investigating this and taking the time to fix and verify across so many themes! I just kicked off CI and when that goes green I'll merge 😄

Thank you again!

@alisonthemonster alisonthemonster merged commit 4f909cf into alisonthemonster:develop Jan 29, 2023
@anettleship
Copy link
Contributor Author

Excellent, really pleased to be able to contribute, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants