zulip / zulip-mobile

Zulip mobile apps for Android and iOS.
https://zulip.com/apps/
Apache License 2.0
1.29k stars 651 forks source link

Rename "Night mode" to "Dark theme" #5169

Open alya opened 2 years ago

alya commented 2 years ago

In https://github.com/zulip/zulip/issues/20228, we renamed "night mode" to "dark theme" in the web app and the Help center. We should make the mobile app theme name consistent with the web app as well.

arcadioramos commented 2 years ago

I'll take it :)

arcadioramos commented 2 years ago

I've made the pr for this issue

alya commented 2 years ago

@arcadioramos please link the PR to the issue.

arcadioramos commented 2 years ago

Done @alya :)

ArchitJain1201 commented 2 years ago

@alya want to confirm if the issue is still available? If yes, Please assign me.

chrisbobbe commented 2 years ago

@ArchitJain1201, the GitHub UI shows that this issue is assigned to arcadioramos.

Udit-takkar commented 2 years ago

I will take this issue as there is no activity on open PR for more than 3 weeks.

punitkashyup commented 2 years ago

@alya Can i work on this ?

alya commented 2 years ago

@punitkashyup you can contribute by reviewing the open PR, or otherwise find another open issue to pick up. Thanks!

ruchitarpatil001 commented 2 years ago

@alya can you assign this issue to me

alya commented 2 years ago

I removed the "good first issue" and "help wanted" labels, as we expect this issue to be solved via solving #4009.

@BigHeadCreations and others, thanks for your work on this! I recommend finding another issue to pick up.

gnprice commented 2 years ago

We've just merged part of #5527, which was aimed at #4009. We didn't end up merging the main commit, because of an RN bug that came up. That RN bug means that solving #4009 will involve more complexity than we'd expected.

As a result, this is still open and good for someone to pick up.

We did in #5527, specifically 43acc4199, take care of part of this renaming. The remaining bits are:

thaiscodafond commented 1 year ago

Hi ! I will claim this issue if possible, @zulipbot claim

alya commented 1 year ago

@thaiscodafond Zulipbot is not active in the mobile repository.

Please post a comment describing your proposed approach when you're ready. I can assign the issue to you once you have a rough plan. Thanks!

aritroCoder commented 1 year ago

I want to work in this issue. please assign me

aritroCoder commented 1 year ago

Plan of working: In src/settings/SettingsScreen.js I have to change the line <SwitchRow label="Night mode" value={theme === 'night'} onValueChange={handleThemeChange} /> to <SwitchRow label="Dark theme" value={theme === 'night'} onValueChange={handleThemeChange} />.

A better approach would be to scan the entire code base for the text Night mode and replace all with Dark theme as there are also translation files in this app, and comments in some places that reference this as Night mode

alya commented 1 year ago

@aritroCoder I assigned this issue to you.

@chrisbobbe or @gnprice , any feedback on the propose approach above?

chrisbobbe commented 1 year ago

Thanks, @aritroCoder! The change you describe in SettingsScreen.js will change

  • the string the user sees

but the issue also requires two more changes, as Greg mentioned above in https://github.com/zulip/zulip-mobile/issues/5169#issuecomment-1302690629:

aritroCoder commented 1 year ago

Thanks, @aritroCoder! The change you describe in SettingsScreen.js will change

  • the string the user sees

but the issue also requires two more changes, as Greg mentioned above in #5169 (comment):

Thanks for the suggestions @chrisbobbe! I did not find any entry for ThemeSetting in src/storage/migrations.js for the migration thing (or will I have to add it?) . But I changed export type ThemeSetting = 'default' | 'night'; to export type ThemeSetting = 'default' | 'dark'; in src/reduxTypes.js. I also have changed the references in the remaining code and comments from night to dark, wherever it referenced the dark theme

chrisbobbe commented 1 year ago

We store a ThemeSetting value in Redux as state.settings.theme; see the GlobalSettingsState type.

aritroCoder commented 1 year ago

Okay, I have changed that. Should I create a PR now?

We store a ThemeSetting value in Redux as state.settings.theme; see the GlobalSettingsState type.

chrisbobbe commented 1 year ago

Sure! Thanks for your help. 🙂

aritroCoder commented 1 year ago

@chrisbobbe please be sure to review the PR

Smriti925 commented 1 year ago

If this issue is still open please assign it to me.

gnprice commented 1 year ago

@Smriti925 Please take a look at our guidelines for picking an issue to work on: https://zulip.readthedocs.io/en/latest/contributing/contributing.html#picking-an-issue-to-work-on Before trying to claim an issue, please spend some time looking through the code to find what will need to change, and work out how you'd approach the problem.

arickahamed commented 1 year ago

@alya Is the issue still open? If yes, Please assign me as I wanna contribute.

yashsinghal2004 commented 11 months ago

Hey @alya I wanted to know if this issue is active or not and if not please assign me good first issue which is active as I want to start my contribution in Zulip org.

alya commented 11 months ago

We are not currently reviewing contributions to this project, as the mobile team is focused on https://github.com/zulip/zulip-flutter.

draunger commented 10 months ago

Assign me