-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Languages text not visible on 'Emilia' theme #269
Comments
Hello, I think I can resolve this one. Emilia is the only theme that implements a light tone for entryBackgroundColor and a dark tone for timelineBackgroundColor. The colour of the text in the entry input dialogue and the language list is determined by entryBodyColor, but the entry input dialogue background colour is set by entryBackgroundColor and the language list background colour is set by timelineBackgroundColor here, so the text can contrast with the background set either in entryBackgroundColor or timelineBackgroundColor, but because these are set to be opposite tones in the Emilia theme, the text cannot contrast with both. The simplest fix is to change the colour scheme of Emilia to have a dark entryBackgroundColor with light text. My preference is for a solution which allows for the granularity to be retained, which I believe was the intention when the six new themes were added here. One proposal would be to change the settings menu to take its background colour from entryBackgroundColor instead of timelineBackgroundColor here. This would have the effect of changing the background colour of the settings menu popup menus across all themes from one value to the other - they are similar tones and I don't believe it would break functionality, but it isn't perfect. Another option is that I notice settingsBackgroundColor is specified in the new themes, but I can't see that it's implemented. For example, it is missing in themes.xml. I'm going to look at whether I can implement this value where it is specified in the theme, to provide the additional granularity of colours. I'm new to Android and Kotlin, so I'd very much appreciate confirmation that I've not missed anything essential, and also that this is the preferred direction to work in to solve the issue. |
I've had a go at implementing this here. Will create a pull request when it's built out. Currently puzzling over how to write tests to check text to background contrast. Any guidance anyone can offer on that point would be well received! |
Thanks @Skyune for reporting and thanks @anettleship for investigating! I also recently got a report from a user about the backup dialog in the settings screen for the same theme: @anettleship I think making a change to the
|
Fix Issue: Languages text not visible on 'Emilia' theme #269
The text was updated successfully, but these errors were encountered: