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

Disable download button on pan/zoom and while estimating size #1863

Merged
merged 8 commits into from
Sep 12, 2023

Conversation

gino-m
Copy link
Collaborator

@gino-m gino-m commented Sep 10, 2023

@JSunde PTAL? @shobhitagarwal1612 FYI

Fixes #1855

Screen_recording_20230910_191022.webm

@vittorino for UX

@gino-m gino-m requested a review from JSunde September 10, 2023 23:10
@JSunde
Copy link
Contributor

JSunde commented Sep 11, 2023

Should we add some sort of loading spinner or indicator? I feel like it would not be clear to me as a user why I can't press download initially after panning or zooming the map.

@@ -23,6 +23,7 @@
<color name="textOverMap">#FCFDF7</color>
<color name="blackMapOverlay">#000000</color>
<color name="lightBackground">#EDEEE9</color>
<color name="material_dynamic_neutral50">#747679</color>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a dark mode variant for this color? If so you should add it to the night colors file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@vittorino What background color should we be using for disabled chip buttons in light and dark mode? What's the named value (e.g., primary, secondary etc) within the Material theme that we should use for the theme color?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We spoke. We should be using "on-surface" color with a 0.12 opacity for the fill. Thanks!

…o gino-m/1855/1

# Conflicts:
#	ground/src/main/java/com/google/android/ground/ui/offlineareas/selector/OfflineAreaSelectorViewModel.kt
#	ground/src/main/res/values/colors.xml
@gino-m gino-m merged commit 30fd1a1 into master Sep 12, 2023
4 checks passed
@gino-m gino-m deleted the gino-m/1855/1 branch September 12, 2023 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Disable "Download" button at lower zoom levels
2 participants