-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set the statausbarcolor according to desighn guideliness requirement #236
base: development
Are you sure you want to change the base?
Conversation
Looks good @NiranjanNlc - well done. |
Thanks for the suggestion . I have attached the screenshots too .After making the changes , the app will preview like this in light mode and dark mode respectively :ODK-X Service :ODK-X Survey :ODK-X Tables : |
Your changes looked good. When I tried applying the theme to Services on Android version 10 only the 3 dots icon turned white. The others were still black. Something you may want to investigate. it could also be you made changes in services so they came out white, but it's not referenced in the pull request. |
Hey @wbrunette , could you please attach the screenshots of your result ? I have used the fresh repo from the github to make sure that no change has been made to the services . I can clearly view the same result as above screenshots in my device . The android version on which my device is running is 10 . |
Hey @wbrunette I investigated the issuses and found that the screen is showing differently on the emulator and device. For me also , only three dots was turning white and other do not change on emulator .It is actually that the night mode is not properly implemented in our pull request.In order to address the issuse, i have done the followings :
Given screen cast verify the result from emulator : |
@NiranjanNlc Glad you figured it out, you don't need specific tools for svg. |
@NiranjanNlc I did a quick look and I did not notice anything wrong. The combination of PRs looks improved. Of course, testing is the only way to make sure by going through all the screens. |
Following the concept described in this link, i performed the following steps to solve the issuse :
Defining color in the colors.xml
Based on ODK- X Desighn Guideliness , I add color on the color.xml to be used in the app :
In the desighn guidelines, It is said that the #fdfdfd would be used for the background and button text .
Overrding the colorPrimary and colorPrimaryDark on the theme with same color :
Adding windowLightStatusBar value as true to ensure the visibility of wifi, battery , mobile netwrk status like component on status bar :
Changing the theme from the light theme to the DayNight theme .
Final style looks like this :
Adding the color.xml (night ) file and putting the value of background_txtButton to #1d1d1d in order to meet the design guidelines for dark mode