Page MenuHomePhabricator

Introduce “Match system theme” setting
Closed, ResolvedPublic4 Estimated Story Points

Description

Why are we doing this?

Android 10 newly introduced a new system setting called “Dark theme”, which allows users to toggle a system wide dark appearance.

Screenshot_20191007-124006.png (2×1 px, 163 KB)

In the Wikipedia app, users currently have to manually adapt their (reading) theme setting based on their system setting.

Suggested solution

Enhance the “App theme” setting and bottom sheet in articles with a Match system theme toggle.

Match system theme on (System dark theme off)Match systeme theme off (System dark theme on)Match system theme off
match-system-theme-on-light.png (1×720 px, 193 KB)
match-system-theme-on-black.png (1×720 px, 208 KB)
match-system-theme-off.png (1×720 px, 194 KB)

If users have set “Match system theme” to on (active toggle), they are able to choose which theme they’d like to use for the two states, see table below.

System dark theme OffSystem dark theme On
“Match system theme” OffLight, Sepia, Dark, BlackLight, Sepia, Dark, Black
“Match system theme” OnLight, SepiaDark, Black

Some additional conditions:

  • The app’s “Match system theme” setting is off by default.
  • If the app’s “Match system theme” setting is enabled and the system’s dark theme setting is off, the app defaults to light theme.
  • If the app’s “Match system theme” is enabled and the system’s dark theme setting is on, the app defaults to use the black theme.
  • If the “Match system theme” setting is enabled, theme options that are not available are in disabled state (greyed out/reduced opacity).
  • The app remembers if users change their preferred themes.

Starting point for researching:

https://developer.android.com/guide/topics/ui/look-and-feel/darktheme

Related Objects

Event Timeline

Charlotte set the point value for this task to 4.

Impeccable work @Sharvaniharan 👏 Hope that Android is going to introduce an automatic dark mode (based on daytime) soon.

Moving this to QA signoff!

ABorbaWMF subscribed.

I am not seeing the theme toggle on 2.7.50303-beta-2019-11-19 on Galaxy S10 and Galaxy Tab

@ABorbaWMF Are they running Android Q? This is only available for Q.

@Sharvaniharan Hey, yes! Sorry about that. I am working on getting android 10 up and running