-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Pm rounded button #2897
Pm rounded button #2897
Changes from 33 commits
e850fbb
06e6611
2b46881
eeab8d2
573ca4d
6cc54e7
b7156c8
10eadc6
3ae3643
ad7c456
a3af6b6
8e070fd
9f15541
99bc8f8
ccf96c2
1754bda
42a347b
e7cd5e8
29eb7f7
affabbf
1d4a933
cfe8594
ed3c688
7ea3cf6
b79797c
2c5eefe
2182e23
063e95c
53befeb
5f33c64
732c706
1def181
322e1aa
4ac0f10
3dcb2f1
1e5f9d8
5f22c1a
6c9ba8c
3ea45c8
9365782
c06692c
67d2919
44c763e
edbc979
13ae017
180db27
dde40f5
2e275f5
9e87ddb
4ef0149
eb6ce41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:color="@color/button_disabled" android:state_enabled="false" /> | ||
<item android:color="@color/button_primary" /> | ||
<item android:color="@color/button_primary_color" /> | ||
</selector> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<solid android:color="@color/white" /> <!-- Background color --> | ||
<corners android:radius="22dp" /> <!-- Rounded corners --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Corner radius of 22dp is inconsistent with app's button styling Based on the search results, most rounded elements in the app use a 12dp radius (seen in multiple files like blue_tabbed_box.xml, grey_bordered_box.xml, info_bubble.xml, bubble.xml). The 22dp radius in button_background_white.xml is significantly larger and inconsistent with this pattern. Only border_dashed_edges.xml uses a similar larger radius of 18dp, but it's not a button element.
🔗 Analysis chainVerify corner radius consistency with Figma design The corner radius of 22dp should be verified against the Figma design specifications to ensure consistency across all rounded buttons in the app. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for other corner radius definitions in drawable files
rg -l "android:radius" --type xml
Length of output: 869 Script: #!/bin/bash
# Search for corner radius values in drawable files
rg "android:radius=\"\d+dp\"" --type xml -A 1
Length of output: 3306 Script: #!/bin/bash
# Search for button-specific drawables with corner radius
rg "android:radius=\"\d+dp\"" --type xml -A 2 -B 2 "*button*.xml"
Length of output: 118 Script: #!/bin/bash
# Search for button-specific drawables with corner radius, using full paths
rg "android:radius=\"\d+dp\"" --type xml -A 2 -B 2 "button_background_white.xml|rounded_button_shape.xml|map_button_base_background.xml"
Length of output: 260 |
||
<stroke | ||
android:width="2dp" | ||
android:color="@color/cc_brand_color" /> <!-- Optional border --> | ||
</shape> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<!-- Disabled state --> | ||
<item android:state_enabled="false"> | ||
<shape> | ||
<solid android:color="@color/green_700" /> | ||
<corners android:radius="22dp" /> | ||
</shape> | ||
</item> | ||
<!-- Pressed state --> | ||
<item android:state_pressed="true"> | ||
<shape> | ||
<solid android:color="@color/green_900" /> | ||
<corners android:radius="22dp" /> | ||
</shape> | ||
</item> | ||
<!-- Default state --> | ||
<item> | ||
<shape> | ||
<solid android:color="@color/green_500" /> | ||
<corners android:radius="22dp" /> | ||
</shape> | ||
</item> | ||
</selector> | ||
|
||
<item android:drawable="@color/green_700" android:state_enabled="false" /> | ||
<item android:drawable="@color/green_900" android:state_pressed="true" /> | ||
<item android:drawable="@color/green_500" /> | ||
|
||
</selector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<item android:drawable="@color/orange_700" android:state_enabled="false" /> | ||
<item android:drawable="@color/orange_900" android:state_pressed="true" /> | ||
<item android:drawable="@color/orange_500" /> | ||
|
||
<!-- Disabled state --> | ||
<item android:state_enabled="false"> | ||
<shape> | ||
<solid android:color="@color/orange_700" /> | ||
<corners android:radius="22dp" /> | ||
</shape> | ||
</item> | ||
<!-- Pressed state --> | ||
<item android:state_pressed="true"> | ||
<shape> | ||
<solid android:color="@color/orange_900" /> | ||
<corners android:radius="22dp" /> | ||
</shape> | ||
</item> | ||
<!-- Default state --> | ||
<item> | ||
<shape> | ||
<solid android:color="@color/orange_500" /> | ||
<corners android:radius="22dp" /> | ||
</shape> | ||
</item> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider creating a base button style The button background implementation is identical to Create a new file <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false">
<shape>
<solid android:color="?attr/buttonDisabledColor" />
<corners android:radius="@dimen/button_corner_radius" />
</shape>
</item>
<item android:state_pressed="true">
<shape>
<solid android:color="?attr/buttonPressedColor" />
<corners android:radius="@dimen/button_corner_radius" />
</shape>
</item>
<item>
<shape>
<solid android:color="?attr/buttonDefaultColor" />
<corners android:radius="@dimen/button_corner_radius" />
</shape>
</item>
</selector> Then create styles for different button colors: <style name="RedButtonBackground">
<item name="buttonDisabledColor">@color/red_700</item>
<item name="buttonPressedColor">@color/red_900</item>
<item name="buttonDefaultColor">@color/red_500</item>
</style>
<style name="OrangeButtonBackground">
<item name="buttonDisabledColor">@color/orange_700</item>
<item name="buttonPressedColor">@color/orange_900</item>
<item name="buttonDefaultColor">@color/orange_500</item>
</style> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @avazirna also want to bump this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @shubham1g5 I have reverted this as it didn't work as expected, some posts suggest that direct reference to a theme attribute from a state selector doesn't work, maybe in older versions of Android. Also the selectors where defined for |
||
</selector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<item android:drawable="@color/red_700" android:state_enabled="false" /> | ||
<item android:drawable="@color/red_900" android:state_pressed="true" /> | ||
<item android:drawable="@color/red_500" /> | ||
|
||
<!-- Disabled state --> | ||
<item android:state_enabled="false"> | ||
<shape> | ||
<solid android:color="@color/red_700" /> | ||
<corners android:radius="22dp" /> | ||
</shape> | ||
</item> | ||
<!-- Pressed state --> | ||
<item android:state_pressed="true"> | ||
<shape> | ||
<solid android:color="@color/red_900" /> | ||
<corners android:radius="22dp" /> | ||
</shape> | ||
</item> | ||
<!-- Default state --> | ||
<item> | ||
<shape> | ||
<solid android:color="@color/red_500" /> | ||
<corners android:radius="22dp" /> | ||
</shape> | ||
</item> | ||
</selector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="66" | ||
android:viewportHeight="66"> | ||
<path | ||
android:pathData="M65.243,28.031C63.982,23.591 61.071,19.904 57.042,17.654C54.971,16.5 52.728,15.802 50.439,15.559C50.332,14.594 50.16,13.629 49.894,12.677C48.634,8.237 45.723,4.55 41.694,2.3C37.664,0.051 33.002,-0.494 28.564,0.767C24.126,2.028 20.44,4.94 18.192,8.971C17.038,11.043 16.34,13.286 16.097,15.577C15.133,15.683 14.168,15.855 13.216,16.121C8.778,17.382 5.092,20.294 2.844,24.325C0.595,28.356 0.051,33.02 1.311,37.46C2.571,41.899 5.482,45.587 9.512,47.836C11.583,48.99 13.825,49.689 16.115,49.931C16.222,50.896 16.393,51.861 16.659,52.814C17.92,57.253 20.831,60.941 24.86,63.19C28.889,65.439 33.552,65.984 37.989,64.723C42.427,63.462 46.113,60.55 48.362,56.519C49.515,54.448 50.214,52.204 50.456,49.914C51.421,49.807 52.385,49.635 53.338,49.369C57.775,48.108 61.462,45.196 63.71,41.165C65.952,37.134 66.497,32.47 65.243,28.031ZM23.428,11.895C24.896,9.267 27.298,7.361 30.197,6.538C33.096,5.716 36.138,6.071 38.771,7.539C41.403,9.007 43.303,11.41 44.125,14.31C44.285,14.866 44.386,15.429 44.457,15.997C44.705,17.974 44.439,19.969 43.646,21.816C43.492,22.177 43.321,22.538 43.125,22.887C42.682,23.686 41.865,25.042 40.883,26.64C36.919,24.13 28.966,19.116 26.345,17.654C24.99,16.897 23.558,16.352 22.091,15.985C22.263,14.565 22.712,13.18 23.428,11.895ZM37.711,32.748C37.711,35.199 35.723,37.188 33.274,37.188C30.824,37.188 28.836,35.199 28.836,32.748C28.836,30.298 30.824,28.309 33.274,28.309C35.723,28.309 37.711,30.298 37.711,32.748ZM18.186,39.679C17.428,41.035 16.884,42.467 16.517,43.935C15.097,43.758 13.713,43.308 12.429,42.592C9.802,41.124 7.896,38.721 7.074,35.82C6.252,32.92 6.607,29.877 8.074,27.243C9.541,24.609 11.944,22.709 14.843,21.887C15.399,21.727 15.961,21.626 16.529,21.555C18.505,21.306 20.499,21.573 22.345,22.366C22.706,22.52 23.067,22.698 23.416,22.893C24.215,23.337 25.57,24.154 27.168,25.136C24.659,29.102 19.653,37.063 18.186,39.679ZM43.119,53.595C41.652,56.223 39.25,58.129 36.351,58.952C33.451,59.775 30.41,59.42 27.777,57.952C25.144,56.484 23.245,54.081 22.422,51.18C22.263,50.624 22.162,50.062 22.091,49.493C21.843,47.516 22.109,45.521 22.896,43.675C23.049,43.314 23.221,42.953 23.422,42.603C23.866,41.804 24.683,40.449 25.665,38.851C29.629,41.36 37.581,46.374 40.202,47.836C41.557,48.594 42.989,49.138 44.457,49.505C44.285,50.926 43.835,52.311 43.119,53.595ZM58.468,38.241C57,40.875 54.598,42.775 51.699,43.598C51.143,43.758 50.581,43.858 50.013,43.929C48.036,44.178 46.042,43.912 44.196,43.118C43.835,42.965 43.474,42.793 43.125,42.592C42.327,42.148 40.972,41.331 39.374,40.348C41.883,36.382 46.894,28.427 48.356,25.805C49.113,24.45 49.658,23.017 50.024,21.549C51.444,21.727 52.829,22.177 54.113,22.893C56.74,24.361 58.645,26.764 59.468,29.664C60.29,32.565 59.935,35.613 58.468,38.241Z" | ||
android:fillColor="#ffffff"/> | ||
</vector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layer-list | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item | ||
android:drawable="@drawable/commcare_actionbar_logo" | ||
android:right="16dp"/> | ||
</layer-list> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="167dp" | ||
android:height="168dp" | ||
android:viewportWidth="167" | ||
android:viewportHeight="168"> | ||
android:width="300dp" | ||
android:height="233dp" | ||
android:viewportWidth="300" | ||
android:viewportHeight="233"> | ||
<path | ||
android:pathData="M54.73,22.85C58.9,10.98 70.23,2.49 83.53,2.49C96.83,2.49 108.16,10.98 112.33,22.85H124.26C135.5,22.85 144.63,31.98 144.63,43.22V145.04C144.63,156.28 135.5,165.41 124.26,165.41H42.8C31.57,165.41 22.44,156.28 22.44,145.04V43.22C22.44,31.98 31.57,22.85 42.8,22.85H54.73ZM90.73,25.83C88.82,23.92 86.23,22.85 83.53,22.85C80.83,22.85 78.24,23.92 76.33,25.83C74.42,27.74 73.35,30.33 73.35,33.03C73.35,35.73 74.42,38.32 76.33,40.23C78.24,42.14 80.83,43.22 83.53,43.22C86.23,43.22 88.82,42.14 90.73,40.23C92.64,38.32 93.72,35.73 93.72,33.03C93.72,30.33 92.64,27.74 90.73,25.83ZM47.58,71.95C46.15,73.38 45.35,75.32 45.35,77.35C45.35,79.38 46.15,81.32 47.58,82.75C49.02,84.18 50.96,84.99 52.98,84.99C55.01,84.99 56.95,84.18 58.38,82.75C59.82,81.32 60.62,79.38 60.62,77.35C60.62,75.32 59.82,73.38 58.38,71.95C56.95,70.52 55.01,69.71 52.98,69.71C50.96,69.71 49.02,70.52 47.58,71.95ZM119.17,72.26H78.44C75.64,72.26 73.35,74.55 73.35,77.35C73.35,80.15 75.64,82.44 78.44,82.44H119.17C121.97,82.44 124.26,80.15 124.26,77.35C124.26,74.55 121.97,72.26 119.17,72.26ZM128.84,124.26C128.84,135.51 119.72,144.63 108.47,144.63C97.22,144.63 88.1,135.51 88.1,124.26C88.1,113.01 97.22,103.9 108.47,103.9C119.72,103.9 128.84,113.01 128.84,124.26ZM110.38,115.99C110.38,114.93 109.53,114.08 108.47,114.08C107.41,114.08 106.56,114.93 106.56,115.99V124.9C106.56,125.96 107.41,126.81 108.47,126.81C109.53,126.81 110.38,125.96 110.38,124.9V115.99ZM108.47,134.45C109.88,134.45 111.02,133.31 111.02,131.9C111.02,130.49 109.88,129.35 108.47,129.35C107.06,129.35 105.92,130.49 105.92,131.9C105.92,133.31 107.06,134.45 108.47,134.45Z" | ||
android:pathData="M122.98,58.67C126.89,47.53 137.52,39.56 150,39.56C162.48,39.56 173.11,47.53 177.02,58.67H188.22C198.76,58.67 207.33,67.24 207.33,77.78V173.33C207.33,183.87 198.76,192.44 188.22,192.44H111.78C101.24,192.44 92.67,183.87 92.67,173.33V77.78C92.67,67.24 101.24,58.67 111.78,58.67H122.98ZM156.76,61.47C154.96,59.68 152.53,58.67 150,58.67C147.47,58.67 145.04,59.68 143.24,61.47C141.45,63.26 140.45,65.69 140.45,68.22C140.45,70.76 141.45,73.19 143.24,74.98C145.04,76.77 147.47,77.78 150,77.78C152.53,77.78 154.96,76.77 156.76,74.98C158.55,73.19 159.55,70.76 159.55,68.22C159.55,65.69 158.55,63.26 156.76,61.47ZM116.27,104.74C114.92,106.08 114.17,107.91 114.17,109.81C114.17,111.71 114.92,113.53 116.27,114.88C117.61,116.22 119.43,116.97 121.33,116.97C123.24,116.97 125.06,116.22 126.4,114.88C127.75,113.53 128.5,111.71 128.5,109.81C128.5,107.91 127.75,106.08 126.4,104.74C125.06,103.4 123.24,102.64 121.33,102.64C119.43,102.64 117.61,103.4 116.27,104.74ZM183.44,105.03H145.22C142.6,105.03 140.45,107.18 140.45,109.81C140.45,112.44 142.6,114.59 145.22,114.59H183.44C186.07,114.59 188.22,112.44 188.22,109.81C188.22,107.18 186.07,105.03 183.44,105.03ZM192.51,153.83C192.51,164.38 183.96,172.94 173.4,172.94C162.85,172.94 154.29,164.38 154.29,153.83C154.29,143.27 162.85,134.72 173.4,134.72C183.96,134.72 192.51,143.27 192.51,153.83ZM175.19,146.07C175.19,145.07 174.39,144.27 173.4,144.27C172.41,144.27 171.61,145.07 171.61,146.07V154.43C171.61,155.42 172.41,156.22 173.4,156.22C174.39,156.22 175.19,155.42 175.19,154.43V146.07ZM173.4,163.38C174.72,163.38 175.79,162.32 175.79,161C175.79,159.68 174.72,158.61 173.4,158.61C172.08,158.61 171.01,159.68 171.01,161C171.01,162.32 172.08,163.38 173.4,163.38Z" | ||
android:fillColor="#ffffff" | ||
android:fillType="evenOdd"/> | ||
</vector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="748dp" | ||
android:height="748dp" | ||
android:viewportWidth="748" | ||
android:viewportHeight="748"> | ||
android:width="300dp" | ||
android:height="233dp" | ||
android:viewportWidth="300" | ||
android:viewportHeight="233"> | ||
<path | ||
android:pathData="M522.21,145.36C526.28,148.26 529.77,151.64 533.23,155.23C535.02,157.02 536.88,158.67 538.81,160.31C542.02,163.08 545.02,165.99 548,169C550.92,171.95 553.85,174.8 557,177.5C561.08,180.98 564.8,184.78 568.56,188.59C570.65,190.65 572.77,192.6 575,194.5C579.08,197.98 582.8,201.78 586.56,205.59C588.65,207.65 590.77,209.6 593,211.5C597.08,214.98 600.8,218.78 604.56,222.59C606.65,224.65 608.77,226.6 611,228.5C615.08,231.98 618.8,235.78 622.56,239.59C624.65,241.65 626.77,243.6 629,245.5C633.08,248.98 636.8,252.78 640.56,256.59C642.65,258.65 644.77,260.6 647,262.5C651.08,265.98 654.8,269.78 658.56,273.59C660.65,275.65 662.77,277.6 665,279.5C669.08,282.98 672.8,286.78 676.56,290.59C678.65,292.65 680.77,294.6 683,296.5C687.08,299.98 690.8,303.78 694.56,307.59C696.65,309.65 698.77,311.6 701,313.5C705.08,316.98 708.8,320.78 712.56,324.59C714.65,326.65 716.77,328.6 719,330.5C723.07,333.98 726.8,337.77 730.55,341.6C732.7,343.7 734.9,345.57 737.25,347.44C742.6,351.99 746.83,359.01 748,366C748.86,378.84 747.6,388.4 739.18,398.65C735.65,402.46 731.8,405.91 727.93,409.36C725.45,411.59 723.08,413.87 720.75,416.25C718.29,418.75 715.78,421.1 713.13,423.38C709.93,426.12 706.96,429.01 704,432C700.48,435.56 696.87,438.9 693.06,442.16C690.61,444.35 688.31,446.66 686,449C682.48,452.56 678.87,455.9 675.06,459.16C672.61,461.35 670.31,463.66 668,466C664.48,469.56 660.87,472.9 657.06,476.16C654.61,478.35 652.31,480.66 650,483C646.48,486.56 642.87,489.9 639.06,493.16C636.61,495.35 634.31,497.66 632,500C628.48,503.56 624.87,506.9 621.06,510.16C618.61,512.35 616.31,514.66 614,517C610.48,520.56 606.87,523.9 603.06,527.16C600.61,529.35 598.31,531.66 596,534C592.48,537.56 588.87,540.9 585.06,544.16C582.61,546.35 580.31,548.66 578,551C574.48,554.56 570.87,557.9 567.06,561.16C564.61,563.35 562.31,565.66 560,568C556.48,571.56 552.87,574.9 549.06,578.16C546.61,580.35 544.31,582.66 542,585C538.4,588.63 534.75,592.11 530.85,595.41C529.66,596.44 528.5,597.49 527.37,598.59C520.52,605.09 512.35,608.26 502.94,608.56C491.94,608.11 482.89,604.22 475.32,596.22C468.37,587.75 466.39,578.27 466.55,567.56C466.55,566.48 466.54,565.39 466.54,564.28C466.55,560.73 466.58,557.19 466.61,553.64C466.62,551.17 466.62,548.7 466.63,546.23C466.64,539.75 466.68,533.27 466.73,526.79C466.77,520.17 466.78,513.54 466.8,506.92C466.85,493.95 466.91,480.97 467,468C465.52,468 465.52,468 464.02,468.01C440.04,468.08 416.06,468.12 392.08,468.16C380.48,468.17 368.88,468.19 357.29,468.23C347.18,468.26 337.07,468.28 326.96,468.28C321.61,468.29 316.26,468.3 310.91,468.32C305.86,468.34 300.82,468.34 295.78,468.34C293.93,468.34 292.09,468.35 290.24,468.36C274.06,468.45 259.25,466.57 246.88,455C235.96,443.36 232.86,430.62 232.84,415.05C232.83,414.07 232.83,413.1 232.82,412.09C232.81,408.88 232.8,405.67 232.8,402.46C232.79,401.36 232.79,400.26 232.79,399.12C232.77,393.28 232.76,387.44 232.76,381.61C232.75,375.61 232.73,369.6 232.7,363.6C232.68,358.96 232.68,354.32 232.68,349.68C232.67,347.47 232.67,345.26 232.65,343.05C232.55,324.82 233.14,307.83 246.25,293.62C256.42,284.18 268.17,279.83 281.93,279.88C282.72,279.88 283.51,279.88 284.33,279.88C286.98,279.88 289.63,279.88 292.28,279.89C294.19,279.89 296.09,279.89 297.99,279.89C303.15,279.89 308.32,279.89 313.48,279.9C318.88,279.9 324.27,279.91 329.67,279.91C339.88,279.91 350.1,279.92 360.32,279.93C371.95,279.94 383.58,279.94 395.22,279.95C419.14,279.96 443.07,279.98 467,280C467,279.44 466.99,278.88 466.99,278.31C466.93,264.7 466.88,251.1 466.84,237.49C466.83,230.91 466.81,224.33 466.77,217.75C466.74,211.4 466.72,205.04 466.72,198.69C466.71,196.27 466.7,193.85 466.68,191.43C466.66,188.03 466.66,184.63 466.66,181.23C466.65,180.24 466.64,179.25 466.63,178.22C466.68,166.91 469.88,157.59 477.63,149.25C489.91,137.88 508.08,136.71 522.21,145.36Z" | ||
android:fillColor="#FFFFFF"/> | ||
<path | ||
android:pathData="M143.68,45.84C145.19,45.83 145.19,45.83 146.73,45.82C150.01,45.81 153.3,45.8 156.59,45.8C157.72,45.79 158.85,45.79 160.02,45.79C166,45.77 171.99,45.76 177.98,45.76C184.13,45.75 190.28,45.73 196.43,45.7C201.19,45.68 205.95,45.68 210.72,45.68C212.98,45.67 215.25,45.67 217.52,45.65C235.9,45.55 253.05,46.02 267.38,59.25C277.29,69.93 281.36,82.21 281.21,96.59C280.44,108.89 274.99,120.57 266,129C254.4,138.7 242.37,141.15 227.67,141.14C226.14,141.15 226.14,141.15 224.59,141.15C222.39,141.16 220.19,141.17 218,141.17C214.51,141.18 211.02,141.19 207.54,141.21C197.63,141.26 187.72,141.31 177.81,141.33C171.74,141.34 165.67,141.37 159.6,141.41C157.29,141.42 154.99,141.42 152.69,141.42C135.89,141.18 135.89,141.18 120,146C118.37,146.78 118.37,146.78 116.7,147.57C105.55,154.64 98.59,164.34 95.45,177.26C94.93,180.43 94.87,183.43 94.87,186.64C94.86,187.3 94.86,187.95 94.86,188.63C94.85,190.83 94.85,193.04 94.85,195.24C94.85,196.84 94.85,198.43 94.84,200.03C94.83,204.42 94.83,208.81 94.83,213.19C94.82,217.92 94.81,222.65 94.8,227.39C94.78,238.81 94.77,250.24 94.76,261.67C94.76,267.05 94.75,272.43 94.75,277.81C94.73,295.71 94.72,313.61 94.71,331.5C94.71,336.15 94.71,340.79 94.7,345.43C94.7,347.17 94.7,347.17 94.7,348.93C94.7,367.62 94.67,386.32 94.64,405.01C94.6,424.2 94.59,443.4 94.58,462.6C94.58,473.37 94.57,484.15 94.55,494.92C94.52,504.1 94.52,513.28 94.53,522.46C94.53,527.14 94.53,531.82 94.51,536.5C94.49,540.79 94.49,545.08 94.51,549.37C94.51,550.91 94.51,552.46 94.49,554.01C94.39,568.16 96.86,580.78 106,592C116.4,602.38 127.78,606.14 142.09,606.16C143.11,606.16 144.12,606.17 145.16,606.17C147.36,606.18 149.56,606.19 151.76,606.2C155.25,606.21 158.74,606.23 162.23,606.25C172.16,606.31 182.08,606.37 192.01,606.4C198.08,606.42 204.16,606.46 210.23,606.5C212.54,606.52 214.84,606.52 217.15,606.53C235.62,606.56 252.97,606.95 267.38,620.25C277.29,630.93 281.36,643.21 281.21,657.59C280.44,669.89 274.99,681.57 266,690C254.5,699.61 242.51,702.15 227.85,702.15C226.36,702.15 226.36,702.15 224.83,702.16C221.55,702.16 218.26,702.17 214.98,702.17C212.68,702.17 210.38,702.17 208.08,702.18C203.25,702.18 198.43,702.19 193.6,702.19C187.46,702.19 181.32,702.2 175.19,702.22C170.43,702.23 165.67,702.23 160.91,702.23C158.65,702.23 156.39,702.23 154.13,702.24C137.78,702.29 121.17,702.27 105.31,697.75C104.53,697.53 103.74,697.32 102.93,697.09C79.5,690.41 59.67,678.7 42,662C40.78,660.88 40.78,660.88 39.54,659.74C21.97,643 10.54,621.18 4,598C3.81,597.35 3.62,596.7 3.42,596.03C-1.55,578.31 -0.57,559.75 -0.51,541.52C-0.5,536.57 -0.51,531.63 -0.52,526.68C-0.53,517.02 -0.52,507.36 -0.51,497.7C-0.49,486.43 -0.5,475.16 -0.5,463.89C-0.51,443.77 -0.49,423.65 -0.47,403.54C-0.44,384.05 -0.44,364.56 -0.45,345.07C-0.46,323.81 -0.46,302.55 -0.44,281.28C-0.44,279.01 -0.44,276.74 -0.44,274.47C-0.44,273.36 -0.44,272.24 -0.44,271.09C-0.43,263.25 -0.44,255.4 -0.44,247.56C-0.44,238 -0.44,228.43 -0.42,218.87C-0.41,214 -0.4,209.12 -0.41,204.25C-0.42,199.78 -0.41,195.31 -0.39,190.84C-0.39,189.23 -0.39,187.62 -0.4,186.02C-0.51,156.71 8.2,127.54 26,104C26.66,103.12 27.32,102.24 28,101.33C50.67,72.44 82.46,53 118.9,47.36C127.17,46.4 135.35,45.85 143.68,45.84Z" | ||
android:fillColor="#FFFFFF"/> | ||
android:pathData="M120.75,67.5C126.14,67.5 130.5,63.14 130.5,57.75C130.5,52.36 126.14,48 120.75,48H101.25C85.1,48 72,61.1 72,77.25V155.25C72,171.4 85.1,184.5 101.25,184.5H120.75C126.14,184.5 130.5,180.14 130.5,174.75C130.5,169.36 126.14,165 120.75,165H101.25C95.86,165 91.5,160.64 91.5,155.25V77.25C91.5,71.86 95.86,67.5 101.25,67.5H120.75ZM225.71,121.55C227.18,120.18 228,118.26 228,116.25C228,114.24 227.18,112.32 225.71,110.95L181.84,69.51C179.71,67.5 176.6,66.95 173.92,68.11C171.24,69.27 169.5,71.92 169.5,74.81V96.75H130.5C125.11,96.75 120.75,101.11 120.75,106.5V126C120.75,131.39 125.11,135.75 130.5,135.75H169.5V157.69C169.5,160.61 171.24,163.23 173.92,164.39C176.6,165.55 179.71,165 181.84,162.99L225.71,121.55Z" | ||
android:fillColor="#ffffff"/> | ||
</vector> |
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.
💡 Codebase verification
Color inconsistency detected with design system
The current implementation uses
@color/start_home_button
(#6AB849), but this doesn't align with the design system's rounded button specifications. The design system (CustomButtonStyle) uses@color/cc_brand_color
as the standard background color for primary rounded buttons.btn_finish_background.xml
should use@color/cc_brand_color
instead of@color/start_home_button
to maintain consistency with the design systemCustomButtonStyle
directly instead of managing colors separately🔗 Analysis chain
Ensure color consistency with design system
The button's default state now uses
@color/start_home_button
. Please verify this aligns with the Figma design specifications for rounded buttons.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 473
Script:
Length of output: 2704
Script:
Length of output: 1636