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

Sync theme between windows #2090

Merged
merged 4 commits into from
Mar 5, 2022

Conversation

vallode
Copy link
Contributor

@vallode vallode commented Feb 19, 2022


Sync theme between windows

Pull Request Type

  • Bugfix
  • Feature Implementation

Related issue
N/A

Description
Finally moves baseTheme, mainColor, secColor logic away from localstorage and into vuex so that we can seamlessly sync them between windows and lower code overhead. It also syncs the expandSideBar setting between windows.

Screenshots (if appropriate)
N/A

Testing (for code that is not small enough to be easily understandable)
Open several windows and flip between themes to your hearts content.

Desktop (please complete the following information):

  • OS: [e.g. iOS] Debian
  • OS Version: [e.g. 22] 11
  • FreeTube version: [e.g. 0.8] 0.16

Additional context
This will help merge #1800 as there is an issue there with themes resetting and not syncing properly. Since this cleans up the logic it will make it easier to debug that.

@PrestonN PrestonN enabled auto-merge (squash) February 19, 2022 19:12
auto-merge was automatically disabled February 19, 2022 19:14

Head branch was pushed to by a user without write access

@PrestonN PrestonN enabled auto-merge (squash) February 19, 2022 19:14
auto-merge was automatically disabled February 19, 2022 19:16

Head branch was pushed to by a user without write access

@PrestonN PrestonN enabled auto-merge (squash) February 19, 2022 19:17
@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added the PR: waiting for review For PRs that are complete, tested, and ready for review label Feb 19, 2022
@efb4f5ff-1298-471a-8973-3d47447115dc

So if i understand correctly this one needs to be merged first in order to get #1800 merged right?

@vallode
Copy link
Contributor Author

vallode commented Feb 21, 2022

So if i understand correctly this one needs to be merged first in order to get #1800 merged right?

Yes, this will make my other PR simpler to debug. :)

Copy link
Collaborator

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Briefly tested locally with 2 windows
Seems fine

@PikachuEXE
Copy link
Collaborator

@efb4f5ff-1298-471a-8973-3d47447115dc
Why aren't you on the reviewer list o.0

@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Member

efb4f5ff-1298-471a-8973-3d47447115dc commented Mar 2, 2022

everything works like intended. The only thing that is bugging me is this #1800 (comment) but i guess that ur answer would be the same as last time #1800 (comment). If that the case, i'll approve after ur response

@vallode
Copy link
Contributor Author

vallode commented Mar 2, 2022

everything works like intended. The only thing that is bugging me is this #1800 (comment) but i guess that ur answer would be the same as last time #1800 (comment). If that the case, i'll approve after ur response

Is that issue you were facing in #1800 happening with this PR also? If it is not I hope we can merge this in and we test the other PR with these changes once I debug a bit more there. Thanks for your help!

@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Member

efb4f5ff-1298-471a-8973-3d47447115dc commented Mar 2, 2022

Not sure if we're talking about the same issue. U can see the issue im facing in the video that is linked in the comment

@vallode
Copy link
Contributor Author

vallode commented Mar 2, 2022

Not sure if we're talking about the same issue. U can see the issue im facing in the video that is linked in the comment

Ah I see now, I did misunderstand yeah.

That issue should no longer be an issue with the database changes that were brought in a bit back, I'll take a look at it when I'm working on the PR again and make sure I fix it (if it still exists) since I agree it's not nice :)

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Mar 2, 2022
@vallode
Copy link
Contributor Author

vallode commented Mar 3, 2022

Just to be clear @efb4f5ff-1298-471a-8973-3d47447115dc I don't think any changes are needed on this PR, I meant when I return to work on the next one. Are there any changes outside of that?

@efb4f5ff-1298-471a-8973-3d47447115dc

Outside of that? No. I'll approve the pr!

@vallode
Copy link
Contributor Author

vallode commented Mar 3, 2022

We should probably also remove the changes requested label so Chunky knows they can review this 😉

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: changes requested labels Mar 3, 2022
Copy link
Member

@ChunkyProgrammer ChunkyProgrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@PrestonN PrestonN merged commit 815c348 into FreeTubeApp:development Mar 5, 2022
@vallode vallode deleted the feature/theme-tab-sync branch March 5, 2022 18:13
@vallode vallode mentioned this pull request Mar 5, 2022
1 task
@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants