Skip to content
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

Black theme doesn't set the android status bar to black #661

Closed
obosob opened this issue Jun 15, 2023 · 14 comments
Closed

Black theme doesn't set the android status bar to black #661

obosob opened this issue Jun 15, 2023 · 14 comments
Labels
4 - medium/high priority Issue needs to be fixed soon, does not break core functionality bug Something isn't working

Comments

@obosob
Copy link

obosob commented Jun 15, 2023

** Jerboa Version **
0.0.33

Describe the bug
When in Black theme the status bar on android, remains the same colour as the background colour in Dark mode, rather than matching the theme.

Screenshot_20230615-035813.png

Screenshot_20230615-035803.png

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Settings > Look and feel'
  2. Click on 'Theme'
  3. Select 'Black'
  4. Observe the status bar
@obosob obosob added the bug Something isn't working label Jun 15, 2023
@twizmwazin twizmwazin added the 4 - medium/high priority Issue needs to be fixed soon, does not break core functionality label Jun 15, 2023
@Schoolkid1
Copy link

I'm going to pick this issue up for my school project. Does any one knows if there is a coding standard available? If there is not i will of course do my best to work as neat as possible.

@Schoolkid1
Copy link

On my phone (Oppo A78) the toolbar does match. Could you tell me what device you are using?

Screenshot_2023-06-16-13-23-11-52_a10f969cf1c4adf2c503042b459b8476

@Schoolkid1
Copy link

@dessalines I am not getting response and after checking on my android phone I concluded the issue doesn't show up. Shall we close this issue?

@obosob
Copy link
Author

obosob commented Jun 19, 2023

This is on a Google Pixel 6, sorry for late reply.

@Schoolkid1
Copy link

For me this problem is not reproduce-able. In combination with the deadline for my school year I am going to focus on another issue. Maybe some one else wants to pick up this issue?

@MV-GH
Copy link
Collaborator

MV-GH commented Jul 25, 2023

What android version?

@Schoolkid1
Copy link

It seems the Google Pixel uses a different buildup in the way it shows colors when changing theme, to resolve this issue i added in the Color.kt file an extra value to adjust specifically the toolbar color. I staged the change, can some one check if this value is sufficient to solve this issue?

@MV-GH
Copy link
Collaborator

MV-GH commented Aug 10, 2023

@Schoolkid1 make a PR with your proposed changes

@Schoolkid1
Copy link

I made a PR. I wanted to split it between #682 and #661 but it combined the files. Can you check if you can acces the pull request. This is my first PR with GitHub so if there are any mistakes I apologise in advance and I am eager to hear feedback to how I can improve.

@MV-GH
Copy link
Collaborator

MV-GH commented Aug 11, 2023

I do not see the PR. Also the reason your changes are combined, is that you did both changes on the same branch.

Take a look at this article: https://docs.github.com/en/get-started/quickstart/contributing-to-projects

And this one for setting upstream as the above does not seem to mention it
https://devopscube.com/set-git-upstream-respository-branch/

or this but it's pretty lengthy https://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project

@Schoolkid1
Copy link

I do have a link for the PR , it is MV-GH#1

But i will delete my fork and reinstall it and do it following the given steps.

@MV-GH
Copy link
Collaborator

MV-GH commented Aug 11, 2023

Be carefully, with deleting your fork, it will also delete your changes. Keep the fork make a new one, until you have it setup as above and recreated your changes their in separate branch. I see that PR but that one is a PR to my fork. You need to do a PR to this repository (upstream). As you can see it has also many conflicts, this is because it is quite behind on changes from upstream. If you have it setup as above it will be very easy to pull the changes from upstream and then merge them into your branches with the changes.

@Schoolkid1
Copy link

New link to PR #1167

Is this better?

Schoolkid1 pushed a commit to Schoolkid1/jerboa that referenced this issue Aug 11, 2023
By adding an extra value for the toolbar it should fix the problem on the Google Pixel phones
Schoolkid1 pushed a commit to Schoolkid1/jerboa that referenced this issue Aug 11, 2023
Fix for Google Pixel phones
Schoolkid1 pushed a commit to Schoolkid1/jerboa that referenced this issue Aug 11, 2023
Fix for Google Pixel phones
Schoolkid1 pushed a commit to Schoolkid1/jerboa that referenced this issue Aug 11, 2023
Made an integer of the code, i hope it is now valid
Schoolkid1 pushed a commit to Schoolkid1/jerboa that referenced this issue Aug 11, 2023
Changed the code to an integer
Schoolkid1 pushed a commit to Schoolkid1/jerboa that referenced this issue Aug 11, 2023
Schoolkid1 pushed a commit to Schoolkid1/jerboa that referenced this issue Aug 11, 2023
I changed the line to an integer, hopefully this makes the code valid
Schoolkid1 pushed a commit to Schoolkid1/jerboa that referenced this issue Aug 13, 2023
Added toolbar into dark theme but there are some changes necessary in read only files. Check pull request for TO-DO list
@dessalines
Copy link
Member

Stale issue, and doesn't seem to be an issue.

@dessalines dessalines closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - medium/high priority Issue needs to be fixed soon, does not break core functionality bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants