-
-
Notifications
You must be signed in to change notification settings - Fork 239
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 QField camera UI to toggle geotagging #4685
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice functionality! Code looks good, did not test myself. Very small comment on colors.
EDIT: once again, nice bird!
anchors.topMargin: 4 | ||
|
||
iconSource: positionSource.active ? Theme.getThemeIcon("ic_geotag_24dp") : Theme.getThemeIcon("ic_geotag_missing_24dp") | ||
iconColor: positionSource.active && settings.geoTagging ? Theme.mainColor : "white" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iconColor: positionSource.active && settings.geoTagging ? Theme.mainColor : "white" | |
iconColor: positionSource.active && settings.geoTagging ? Theme.mainColor : Theme.lightColor |
Isn't it better to avoid mixing themed and hardcoded colors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, not really. I mean, we could have Theme.white, but I feel like it's not gaining much.
This specific color doesn't change across our light/dark theme either.
If we want to say have something like Theme.defaultToolButttonColor (being white) I suggest we do that in a separate PR as it'll touch a dozen QML files or so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the idea is that if we decide to add another color theme in the future, we are not sure if the white will remain white. Probably your suggestion to have Theme.defaultToolButttonColor
is even better. Lets merge like this for now.
🎉 Ta-daaa, freshly created APKs are available for 321c45f: arm64-android |
This PR adds a UI to the QField camera to toggle geotagging:
When enabled, the following tags are added: