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 icons to 'Save as draft' and 'Finalize' #5936

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Jan 24, 2024

Closes #5935

Before After
Screenshot_1706135323 Screenshot_1706283029

Why is this the best possible solution? Were any other approaches considered?

I've just added icons to the two buttons mentioned in the issue. @alyblenkin in https://www.figma.com/file/KFi9hIQdrRgo0rLqIC7Sg8/ODK-user-flows?type=design&node-id=4092-15997&mode=design&t=LxacBD1eYjJoYsp3-0 the first button uses black color but it's just a mockup and the color shouldn't be changed right?

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Just make sure the icons look good.

Do we need any specific form for testing your changes? If so, please attach one.

No.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

Before submitting this PR, please make sure you have:

  • added or modified tests for any new or changed behavior
  • run ./gradlew connectedAndroidTest (or ./gradlew testLab) and confirmed all checks still pass
  • added a comment above any new strings describing it for translators
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@alyblenkin
Copy link
Collaborator

I've just added icons to the two buttons mentioned in the issue. @alyblenkin in https://www.figma.com/file/KFi9hIQdrRgo0rLqIC7Sg8/ODK-user-flows?type=design&node-id=4092-15997&mode=design&t=LxacBD1eYjJoYsp3-0 the first button uses black color but it's just a mockup and the color shouldn't be changed right?

The colour shouldn't change - I was updating the styles for something else and didn't notice that it changed there!

Could we center the icons and text, as we do with the "Back" and "Next" buttons and the "Save Form" dialog?

@grzesiek2010
Copy link
Member Author

Could we center the icons and text, as we do with the "Back" and "Next" buttons and the "Save Form" dialog?

Yes, it's done.

@grzesiek2010 grzesiek2010 requested a review from seadowg January 26, 2024 17:25
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent"
app:icon="@drawable/ic_send_24"
app:iconGravity="textStart" />
Copy link
Member

Choose a reason for hiding this comment

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

I think we do this for all Material buttons. Should we set our own ?materialButtonOutlinedIconStyle and ?materialButtonIconStyle that extend the default styles and add this do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not for all, first_launch_layout is one example. There are some more but in other cases, we usually use wrap_content as android:layout_width, and then that difference is not visible. @alyblenkin what do you think should we always remove that space between the icon and the text? If so please file a separate issue.

@grzesiek2010 grzesiek2010 requested a review from seadowg January 30, 2024 14:40
@seadowg seadowg merged commit 15d9e19 into getodk:master Jan 30, 2024
6 checks passed
@seadowg seadowg removed their request for review January 30, 2024 16:11
@srujner
Copy link

srujner commented Jan 31, 2024

Tested with Success!

Verified on device with Android 13

Verified cases:

@dbemke
Copy link

dbemke commented Jan 31, 2024

Tested with Success!

Verified on device with Android 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Finalization flow: Add icons to 'Save as draft' and 'Finalize'
5 participants