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

Use ModeSwitch #10

Merged
merged 4 commits into from
Dec 18, 2018
Merged

Use ModeSwitch #10

merged 4 commits into from
Dec 18, 2018

Conversation

cassidyjames
Copy link
Contributor

@cassidyjames cassidyjames commented Dec 17, 2018

This is a work in progress. It mostly works, but I am getting an issue when restoring the dark mode: the switch is not set to active.

screenshot from 2018-12-17 12 21 11

screenshot from 2018-12-17 12 21 18

Note that this does not introduce a dependency on Granite; instead, the Granite ModeSwitch is pulled into the codebase. Either way could work, it is up the @writeas developers.

Will close #9 if/when merged.

cassidyjames and others added 4 commits December 17, 2018 12:08
This fixes issues with Ctrl+T and the switch not reflecting correct
state when starting up -- previously, darkmode_switch was initialized in
construct_toolbar() as a local variable.
@thebaer thebaer changed the title [WIP] Use ModeSwitch Use ModeSwitch Dec 18, 2018
@thebaer
Copy link
Member

thebaer commented Dec 18, 2018

Love it! This looks really nice. I didn't know about the Granite stuff before. Will definitely be looking through that in the future.

I figured out what was causing the bug -- just an extra var in there. I'll get this change merged in, and grab the updated screenshots. Thanks again for all your awesome help with this!

@thebaer thebaer merged commit 466bfda into writeas:master Dec 18, 2018
@cassidyjames cassidyjames deleted the modeswitch branch December 18, 2018 04:57
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.

Suggestion: Use ModeSwitch for light/dark
2 participants