- Go to the national assembly of Pakistan article.
- Tap quick facts.
- Observe the colored boxes do not show as they should.
Expected:
https://en.wikipedia.org/wiki/National_Assembly_of_Pakistan
| • Niedzielski | |
| Jun 28 2015, 12:46 AM |
| F353339: Screen Shot 2015-08-03 at 4.57.25 PM.png | |
| Aug 3 2015, 8:58 PM |
| F352133: Screen Shot 2015-08-03 at 4.21.27 PM.png | |
| Aug 3 2015, 8:25 PM |
| F183891: screenshot-2015-06-27-18-44-30-074609646.png | |
| Jun 28 2015, 12:46 AM |
Expected:
https://en.wikipedia.org/wiki/National_Assembly_of_Pakistan
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Halve RGB values of background colors in tables in night mode | apps/android/wikipedia | master | +57 -24 |
This is because we actually strip out all background colors from table elements when we go into dark mode.
Idea: instead of stripping the color, we can try modifying the "brightness" of the color to be darker, e.g. (r/2, g/2, b/2).
Here's a screenshot with RGB values halved (rather than stripped) for table element backgrounds.
The good news is that it looks fine in general; the bad news is, as is the case here, this can also change meaning; the colors in the key (which we've just restored) no longer match up to the seats in the diagram.
Change 228989 had a related patch set uploaded (by Mholloway):
Halve RGB values of background colors in tables in night mode
Change 228989 merged by jenkins-bot:
Halve RGB values of background colors in tables in night mode
Checked with 2.0.108-alpha-2015-08-12 on Nexus5(Android 5.1)
Samsung Tablet Ce0168(Android 4.0.4)
The 'Quick facts' for the national assembly of Pakistan article are displayed as in the screenshot by @Mholloway.
Checked on other articles with the same Quick facts structue with colorbox(es)-National Assembly (South Korea), Scottish Parliament, National Assembly of Quebec(no colorbox ).