Yubico / yubioath-android

Yubico Authenticator for Android
https://developers.yubico.com/yubioath-android/
BSD 2-Clause "Simplified" License
244 stars 59 forks source link

Theme options of Light and Dark #102

Closed Mhynlo closed 5 years ago

Mhynlo commented 5 years ago

Note: There is a system call that uses API 21 (released 2014)

I used the recreate() method to help the theme transition in the settings section (current screen), but closing the app and reopening helps display the theme that was selected.

dainnilsson commented 5 years ago

Thanks for your contribution! Before merging this there are a few issues which need to be addressed:

  1. Since this requires API 21 the setting to switch theme should be hidden on older versions, the new code should only be run on devices with API 21 or later.

  2. There are several colors in the dark theme that need to be changed for visibility. I just had a quick look, but some examples of where I found problems are:

    • The timer bar is almost invisible, as it's dark blue on dark gray.
    • Titles in some dialogs are white test on white background, making them invisible.
  3. When switching theme, before restarting, you get a mix where some screens use one theme and others use the other. The whole app should switch at once, either immediately (ideally) or on restart.

Mhynlo commented 5 years ago

I was able to get the themes handled better with this last commit.

I did not find a great way to implement that third item.

dainnilsson commented 5 years ago

Thanks! Regarding the third item, I can take a stab at that!

ubais998 commented 2 years ago

Thanku

ubais998 commented 2 years ago

ubaisali

ubais998 commented 2 years ago

@ubais998

ubais998 commented 2 years ago

Thanku

ubais998 commented 2 years ago

Thanku #147

ubais998 commented 2 years ago

Duplicate of #26

ubais998 commented 2 years ago

@ubais998 [Uploading HubSpot TOS for PDF_2 Sept 2022 (Clean).pdf…]()

147

Duplicate of #