Skip to content

fix: set secondary color to editprofile buttons #1533

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

Merged
merged 3 commits into from
Apr 5, 2019

Conversation

addiegupta
Copy link
Contributor

@addiegupta addiegupta commented Apr 4, 2019

Fixes: #1532

Changes:

  • Changed color of update button and profile photo FAB to secondary color by using app theme
  • Refactored 'buttonUpdate' to 'updateButton' for consistency
  • Moved a hardcoded string to string resources

Screenshots for the change:

new button pr non rounded

@@ -79,12 +78,11 @@

</LinearLayout>

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/buttonUpdate"
<com.google.android.material.button.MaterialButton
Copy link
Member

Choose a reason for hiding this comment

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

Just use Button

Should work

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you sure? MaterialButton has different ripples and looks better IMO

Copy link
Member

Choose a reason for hiding this comment

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

Is there a difference, the library should automatically inflate Button to MaterialButton

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed MaterialButton to Button in latest push

Fixes: fossasia#1532

Changes:
- Changes color of update button and profile photo FAB to secondary color
- Refactored 'buttonUpdate' to 'updateButton' for consistency
- Moved a hardcoded string to string resources
@addiegupta addiegupta changed the title fix: update editprofile buttons color and use materialbutton fix: set secondary color to editprofile buttons Apr 5, 2019
@iamareebjamal
Copy link
Member

Is it working as expected?

@addiegupta
Copy link
Contributor Author

Is it working as expected?

yes

@iamareebjamal iamareebjamal added this to the v0.2.0 milestone Apr 5, 2019
@iamareebjamal iamareebjamal merged commit 77d7a2e into fossasia:development Apr 5, 2019
@addiegupta addiegupta deleted the edit_buttons branch April 6, 2019 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants