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

Add button to change app time to system time #156

Merged
merged 8 commits into from
Apr 8, 2024

Conversation

Carifio24
Copy link
Member

This PR adds a button that changes the app time to the system time, clamped to be within our min and max time values on the slider. Currently I've set the button to be disabled when the current time is outside of that range.

Since the system time isn't reactive, I've set a function to run on a 1-second interval that checks whether the system time is inside of the range. Also, while WWT has a function for resetting to the current system time, we would also need to update the app time, which triggers a WWT time update. Thus there's really no benefit - we can just update the app time and let the watcher update WWT.

Marking as a draft so that we can set up styling.

@patudom patudom marked this pull request as ready for review April 8, 2024 04:37
@patudom
Copy link
Contributor

patudom commented Apr 8, 2024

@Carifio24 and @johnarban, I styled the "now" button and added some updates to the splash and intro overlays. If you get a chance, can one of you please check if it works ok for you? If so, you can merge. Thanks!

@johnarban
Copy link
Contributor

I have checked and fixed an issue with the geolocation button not updating the text

@johnarban johnarban merged commit 4df0235 into cosmicds:main Apr 8, 2024
1 check passed
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