android icon indicating copy to clipboard operation
android copied to clipboard

dark theme is working

Open jahway603 opened this issue 4 years ago • 14 comments

The colors might need some re-work, as there are still variable names named incorrectly, but regardless now this app has a Dark Theme! This is important for Visual Accessability. This will resolve Issue #144 too.

jahway603 avatar Dec 07 '21 05:12 jahway603

Yay! I'm currently traveling without the ability to test it, but I'll be able to test in a week! Is it ready?

tasn avatar Dec 07 '21 19:12 tasn

I believe it's ready, which is why I created the PR :+1: As I stated before, the colors might need some re-work by a more visual person than myself, but I can now look at the app without having any eye strain, which is great news.

jahway603 avatar Dec 07 '21 20:12 jahway603

@tasn do I need to do anything else to get this dark theme in the Etesync Android app?

jahway603 avatar Dec 23 '21 18:12 jahway603

Nothing else, sorry I haven't tested it yet. I have time on my calendar for this week. Sorry again!

tasn avatar Dec 27 '21 12:12 tasn

Sorry for being slow! It looks great, I just noticed three issues that need fixing:

  1. There's a white background when going to journal -> change -> raw (and also non-raw). Just need to make the background dark.
  2. When you go to login/signup - the username and password hints don't show when the fields are focused. Not the end of the world if not easy to fix.
  3. Icons in the side menu are dark when they should be white - no worries if not easy to fix.

Thanks a lot for this, and apologies again for being slow. I'm very excited about getting this one in!

tasn avatar Dec 31 '21 10:12 tasn

@tasn, I'm having trouble figuring out how to make the RAW background dark. I found it corresponds to the "journal_item_tab_raw" variable in strings.xml. I then find that string being used here and here, b ut am having trouble figuring out how to make it dark. Any suggestions? Am I missing something obvious here? Thanks.

jahway603 avatar Jan 06 '22 15:01 jahway603

Maybe it's not actually using the theme?

tasn avatar Jan 06 '22 15:01 tasn

Now the "journal -> change" background color will match the selected theme (on both raw and non-raw).

I'm not sure how to fix this though: "When you go to login/signup - the username and password hints don't show when the fields are focused."

jahway603 avatar Jan 08 '22 01:01 jahway603

I'm not sure how to fix this though: "When you go to login/signup - the username and password hints don't show when the fields are focused."

It's OK, it's not a blocker. I'll merge and release in a bit.

tasn avatar Jan 09 '22 13:01 tasn

I gave it some more testing and:

  1. The background is not fixed for me there - is it really fixed for you?
  2. It's not persisted across app restarts. So if I change to night, force close the app, open it again, it goes back to the light theme even though "night" is still selected in the settings.

tasn avatar Jan 09 '22 13:01 tasn

Alright. That's strange that the background is not fixed for you - I'm testing on an Android 8 device, what version are you testing on?

I'm also having the same issue you describe with the theme not persisting across app restarts. I had not tested this, but I'll work on fixing it.

jahway603 avatar Jan 10 '22 04:01 jahway603

Alright. That's strange that the background is not fixed for you - I'm testing on an Android 8 device, what version are you testing on?

I'm not sure, as I don't have my test phone next to me at the moment, but I want to guess Android 9, maybe 10.

tasn avatar Jan 10 '22 09:01 tasn

Have not had a chance to work on this further but wanted to add a note that upstream's davx5, which this code is based upon, does have a fully functional dark theme which I will be exploring (when I get the time again) to see why my changes were not staying persistent.

jahway603 avatar Feb 18 '23 17:02 jahway603

We diverged quite a bit from our davx5 origins, but the theme should be mostly the same! Let me know!

tasn avatar Feb 19 '23 03:02 tasn