Skip to content

Handle the Fact that themeSource isn't sticky#11826

Merged
sergiou87 merged 3 commits intodesktop:developmentfrom
say25:themeSource-not-sticky
Mar 26, 2021
Merged

Handle the Fact that themeSource isn't sticky#11826
sergiou87 merged 3 commits intodesktop:developmentfrom
say25:themeSource-not-sticky

Conversation

@say25
Copy link
Copy Markdown
Member

@say25 say25 commented Mar 18, 2021

Description

Release notes

Notes: No Notes

@say25 say25 requested a review from sergiou87 March 18, 2021 23:06
Copy link
Copy Markdown
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

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

@say25 Thanks for looking at this! I was testing it out and am running into some odd behavior.

I spun up my Desktop-dev. I was in dark mode, which is my system theme setting.. but I have been setting it to light for cherry picking testing. (But due to the bug this pr is fixing, it doesn't remember that and goes back to Dark on each reload)

I then go to appearance. I expected to be set on system but I was on Dark. I figure this is just because I was last on dark before the update.

I then set my theme to light. It switches to light great! Then I close out Desktop-dev and spin it back up again. I expect it to remember my light mode selection. Sadness... it did not persist my selection. It is Dark again. However... I go to the preferences and light is selected just the light theme is not applied! I think this PR is heading the right direction, but needs one more step to apply locally stored theme.

image

@sergiou87
Copy link
Copy Markdown
Member

Could that be some kind of race condition? Maybe we need to set the themeSource before/after some specific event 🤔

Comment thread app/src/ui/lib/application-theme.ts Outdated
Comment thread app/src/ui/lib/application-theme.ts
Copy link
Copy Markdown
Member

@sergiou87 sergiou87 left a comment

Choose a reason for hiding this comment

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

LGTM and seems to work fine now 😌

Thanks for taking care of this! ❤️

:shipit:

@sergiou87 sergiou87 enabled auto-merge March 25, 2021 11:04
@tidy-dev tidy-dev self-requested a review March 26, 2021 12:24
@sergiou87 sergiou87 merged commit eeb710a into desktop:development Mar 26, 2021
@say25 say25 deleted the themeSource-not-sticky branch March 27, 2021 04:49
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.

3 participants